Class: CORL::Action::Build

Inherits:
Plugin::CloudAction show all
Defined in:
lib/CORL/action/build.rb

Instance Method Summary collapse

Methods inherited from Plugin::CloudAction

#execute_remote, #init_network, #namespace, #node_config, #node_exec, #node_ignore, #validate

Instance Method Details

#configureObject


Settings



9
10
11
12
13
# File 'lib/CORL/action/build.rb', line 9

def configure
  super do
    codes :network_failure
  end
end

#executeObject


Operations



18
19
20
21
22
23
24
25
26
27
# File 'lib/CORL/action/build.rb', line 18

def execute
  super do |node, network|
    if network && node
      info('corl.actions.build.start')  
      node.build
    else
      myself.status = code.network_failure
    end
  end
end