summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheodore Nordsieck <theo@opscode.com>2013-08-06 14:22:08 -0700
committerTheodore Nordsieck <theo@opscode.com>2013-08-08 16:13:22 -0700
commitb5c024f216d1de5f3192cdf8db49b33fa4b46432 (patch)
treea4d0a79c6f95fececfb40099bd27f0c99e1564b4 /bin
parentf08f3a94118a02d0a60b8a6607476795b51b6329 (diff)
downloadohai-b5c024f216d1de5f3192cdf8db49b33fa4b46432.tar.gz
Converted OhaiPluginCommon to a module and converted to it_behaves_like in spec files
Diffstat (limited to 'bin')
-rw-r--r--bin/grab_data.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/grab_data.rb b/bin/grab_data.rb
index 60039a58..6776bf4a 100644
--- a/bin/grab_data.rb
+++ b/bin/grab_data.rb
@@ -73,11 +73,10 @@ cli.parse_options
cmd, params, platform, arch, env = cli.config[:command], cli.config[:params], cli.config[:platform], cli.config[:arch], cli.config[:env]
# read in data
-opc = OhaiPluginCommon.new
# filename = cmd + ".output"
# Mixlib::ShellOut.new("touch #{filename}").run_command
-# data = opc.read_output cmd, File.expand_path( File.dirname(__FILE__))
+# data = OhaiPluginCommon.read_output cmd, File.expand_path( File.dirname(__FILE__))
data ||= {}
data[platform] ||= {}
data[platform][arch] ||= []
@@ -101,4 +100,4 @@ results.each do |r|
data[platform][arch] << r
end
-puts opc.data_to_string data
+puts OhaiPluginCommon.data_to_string data