mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
simplify script resource
This commit is contained in:
parent
cd35d82326
commit
cb95951e03
1 changed files with 1 additions and 3 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
class Script < Cmd
|
||||
name 'script'
|
||||
attr_accessor :command
|
||||
|
||||
def initialize(script)
|
||||
case inspec.os[:family]
|
||||
|
@ -19,8 +18,7 @@ class Script < Cmd
|
|||
else
|
||||
return skip_resource 'The `script` resource is not supported on your OS yet.'
|
||||
end
|
||||
|
||||
@command = cmd
|
||||
super(cmd)
|
||||
end
|
||||
|
||||
# we cannot determine if a command exists, because that does not work for scripts
|
||||
|
|
Loading…
Add table
Reference in a new issue