Class: Bcome::Node::Estate
- Includes:
- Selections
- Defined in:
- lib/nodes/estate.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Selections
#add, #add!, #add_object, #clear!, #find_resource_by_identifier, #get, #in_resources?, #manage_object, #no_selections?, #no_selections_error, #object_in_selections?, #put, #remove, #remove_object, #run, #selections
Methods inherited from Base
#initialize, #method_missing, #set_parent_reference
Methods included from CommandHelper
Constructor Details
This class inherits a constructor from Bcome::Node::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bcome::Node::Base
Instance Method Details
#environments ⇒ Object
14 15 16 |
# File 'lib/nodes/estate.rb', line 14 def environments @environments ||= platforms.collect(&:environments).flatten end |
#list_all ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/nodes/estate.rb', line 18 def list_all estate_machine_list = "\n" platforms.each do |platform| estate_machine_list += "* #{platform.identifier}\n" platform.environments.each do |environment| estate_machine_list += "\t- #{environment.identifier}\n" environment.instances.each do |instance| estate_machine_list += "\t\t / #{instance.identifier} (#{instance.public_ip_address})\n" end end end puts estate_machine_list.colorize(:green) return "" end |
#machines ⇒ Object
6 7 8 |
# File 'lib/nodes/estate.rb', line 6 def machines platforms.collect(&:machines).flatten end |
#namespace ⇒ Object
10 11 12 |
# File 'lib/nodes/estate.rb', line 10 def namespace "" end |