Class: Specinfra::CommandRunner::Itamae

Inherits:
Base
  • Object
show all
Defined in:
lib/specinfra/command_runner/itamae.rb

Instance Method Summary collapse

Methods inherited from Base

#check_command, #run_command, #run_specinfra

Constructor Details

#initialize(node) ⇒ Itamae

Itamae::NodeからItamae::Backend::*もしくはSpecinfra::Backend::*を取りだす。



7
8
9
10
# File 'lib/specinfra/command_runner/itamae.rb', line 7

def initialize(node)
  # nodeオブジェクト内からインスタンス変数@backendを取りだす
  @backend = node.instance_variable_get(:@backend)
end

Instance Method Details

#specinfra_command(type, *args) ⇒ Object



12
13
14
# File 'lib/specinfra/command_runner/itamae.rb', line 12

def specinfra_command(type, *args)
  @backend.get_command(type, *args)
end