mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
fix lint error
This commit is contained in:
parent
2821dae1b3
commit
11a7c9f0da
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue