fix lint error

This commit is contained in:
Victoria Jeffrey 2016-08-25 07:44:19 -04:00
parent 2821dae1b3
commit 11a7c9f0da

View file

@ -1,13 +1,13 @@
# encoding: utf-8
require 'open3'
commands = {'inspec_exec' => 'inspec exec examples/profile/controls/example.rb', 'inspec_version' => 'inspec version'}
commands = { 'inspec_exec' => 'inspec exec examples/profile/controls/example.rb', 'inspec_version' => 'inspec version' }
commands.each do |keyname, command|
stdout, stdeerr, status = Open3.capture3(command)
stdout, _stdeerr, _status = Open3.capture3(command)
# filename should be key.txt...and we should be saving it somewhere in www/
out_file = File.new("#{keyname}.txt", "w")
out_file = File.new("#{keyname}.txt", 'w')
out_file.puts(stdout)
out_file.close
end