implement fake os method for mock backend

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-21 12:40:25 +02:00
parent c36b6d2972
commit c56dee4d0f

View file

@ -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