Class: Bcome::Orchestrator::CommandGroup::Custom

Inherits:
Base
  • Object
show all
Defined in:
lib/orchestrator/command_group/custom.rb

Instance Attribute Summary

Attributes inherited from Base

#machines

Instance Method Summary collapse

Methods inherited from Base

#initialize, klass_for_type, new_of_type_from, #set_machines

Methods included from ValidateAndSet

#validate_and_set

Constructor Details

This class inherits a constructor from Bcome::Orchestrator::CommandGroup::Base

Instance Method Details

#execute!(current_context_machines, is_bootstrap) ⇒ Object



8
9
10
# File 'lib/orchestrator/command_group/custom.rb', line 8

def execute!(current_context_machines, is_bootstrap)
   ::Bcome::Orchestrator::CustomCommand.send(@bcome_command, current_context_machines, is_bootstrap)    
end

#json_attributesObject



4
5
6
# File 'lib/orchestrator/command_group/custom.rb', line 4

def json_attributes
  super + [:bcome_command]
end