Class: Specinfra::Backend::ShellScript::Writer

Inherits:
Object
  • Object
show all
Defined in:
lib/specinfra/backend/shell_script.rb

Instance Method Summary collapse

Constructor Details

#initialize(lines) ⇒ Writer

Returns a new instance of Writer.



19
20
21
# File 'lib/specinfra/backend/shell_script.rb', line 19

def initialize(lines)
  @lines = lines
end

Instance Method Details

#call(*args) ⇒ Object



23
24
25
# File 'lib/specinfra/backend/shell_script.rb', line 23

def call(*args)
  puts @lines
end