Class: Bcome::Node::Platform

Inherits:
Base show all
Defined in:
lib/nodes/platform.rb

Instance Attribute Summary

Attributes inherited from Base

#meta_data, #stack_peer

Instance Method Summary collapse

Methods inherited from Base

#initialize, #interactive, #method_missing, #run, #set_parent_reference, #set_stack_peer

Methods included from CommandHelper

#run_local

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

#identifierObject



8
9
10
# File 'lib/nodes/platform.rb', line 8

def identifier
  name
end

#machinesObject



4
5
6
# File 'lib/nodes/platform.rb', line 4

def machines
  environments.collect(&:machines).flatten
end

#namespaceObject



12
13
14
# File 'lib/nodes/platform.rb', line 12

def namespace
  "#{estate.namespace}/#{identifier}"
end