mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
implement fake os method for mock backend
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
c36b6d2972
commit
c56dee4d0f
1 changed files with 2 additions and 1 deletions
|
@ -6,10 +6,11 @@ module Vulcano::Backends
|
||||||
class Mock < Vulcano.backend(1)
|
class Mock < Vulcano.backend(1)
|
||||||
name 'mock'
|
name 'mock'
|
||||||
|
|
||||||
attr_accessor :files, :commands
|
attr_accessor :files, :commands, :os
|
||||||
def initialize(conf)
|
def initialize(conf)
|
||||||
@conf = conf
|
@conf = conf
|
||||||
@files = {}
|
@files = {}
|
||||||
|
@os = {}
|
||||||
@commands = {}
|
@commands = {}
|
||||||
trace_calls unless @conf[:quiet]
|
trace_calls unless @conf[:quiet]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue