Class: Runbook::Statements::RubyCommand

Inherits:
Runbook::Statement show all
Defined in:
lib/runbook/statements/ruby_command.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#parent

Instance Method Summary collapse

Methods inherited from Runbook::Statement

#render, #run

Methods included from Hooks::Invoker

#_execute_after_hooks, #_execute_around_hooks, #_execute_before_hooks, #invoke_with_hooks

Methods inherited from Node

#dynamic!, #dynamic?, #parent_entity, #visited!, #visited?

Constructor Details

#initialize(&block) ⇒ RubyCommand

Returns a new instance of RubyCommand.



5
6
7
# File 'lib/runbook/statements/ruby_command.rb', line 5

def initialize(&block)
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



3
4
5
# File 'lib/runbook/statements/ruby_command.rb', line 3

def block
  @block
end