From ebabd088673cf3e36d600bd96aeba004077842f1 Mon Sep 17 00:00:00 2001 From: sersut Date: Wed, 8 Jan 2014 15:34:15 -0800 Subject: Remove -f / --file option from OHAI. This option was useful when developing OHAI plugins in OHAI 6 but not anymore in OHAI 7. The way to get a similar functionality is to run: ohai -d . => get all the attributes by running the plugins in the current directory ohai -d . my_attribute_name => only to get the attribute you're developing --- spec/unit/plugins/freebsd/virtualization_spec.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'spec/unit/plugins/freebsd/virtualization_spec.rb') diff --git a/spec/unit/plugins/freebsd/virtualization_spec.rb b/spec/unit/plugins/freebsd/virtualization_spec.rb index 1072f051..ccefdd8f 100644 --- a/spec/unit/plugins/freebsd/virtualization_spec.rb +++ b/spec/unit/plugins/freebsd/virtualization_spec.rb @@ -23,7 +23,6 @@ describe Ohai::System, "FreeBSD virtualization plugin" do before(:each) do @plugin = get_plugin("freebsd/virtualization") @plugin.stub(:collect_os).and_return(:freebsd) - @plugin.extend(SimpleFromFile) @plugin.stub(:shell_out).with("sysctl -n security.jail.jailed").and_return(mock_shell_out(0, "0", "")) @plugin.stub(:shell_out).with("#{ Ohai.abs_path( "/sbin/kldstat" )}").and_return(mock_shell_out(0, "", "")) @plugin.stub(:shell_out).with("jls -n").and_return(mock_shell_out(0, "","")) -- cgit v1.2.1