mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
dont reference backend in local command
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
1d1220983a
commit
93a3bc8e58
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ module Vulcano::Backends
|
|||
end
|
||||
|
||||
def run_command(cmd)
|
||||
Command.new(self, cmd)
|
||||
Command.new(cmd)
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
@ -32,7 +32,7 @@ module Vulcano::Backends
|
|||
|
||||
class Command
|
||||
attr_reader :stdout, :stderr, :exit_status
|
||||
def initialize(backend, cmd)
|
||||
def initialize(cmd)
|
||||
@cmd = cmd
|
||||
pid, stdin, stdout, stderr = open4(cmd)
|
||||
stdin.close
|
||||
|
|
Loading…
Reference in a new issue