Class: Bcome::Stack::Estate
Constant Summary
BecomeObject::CONFIGS_PATH
ContextFunctions::CONFIGS_PATH
Instance Method Summary
collapse
#all_items, #context_breadcrumb, #do_load_resources, #has_main_context?, #identifier, #list, #local_download_path, #main_context, #main_context=, #previous_workspace_object, #previous_workspace_object=, #resource_for_identifier, #resources, #responds_to_list?
Methods inherited from Base
#available_resources_options_string, #become, #construct_node, #describe, #highlight?, #machines, #menu, #method_missing, #node_level_klass, #recipes, #workon
#run_local
#command_for_context, #context_cmd_config_path, #context_cmd_functions, #context_commands, #execute_command_for_context, #has_context_cmd_functions?, #has_context_functions_config?, #load_context_cmd_functions
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Bcome::Stack::Base
Instance Method Details
#become_identifier ⇒ Object
22
23
24
|
# File 'lib/stack/estate.rb', line 22
def become_identifier
::START_PROMPT
end
|
#collection_key ⇒ Object
14
15
16
|
# File 'lib/stack/estate.rb', line 14
def collection_key
:platforms
end
|
#collection_klass ⇒ Object
10
11
12
|
# File 'lib/stack/estate.rb', line 10
def collection_klass
::PLATFORM_STACK_KLASS
end
|
#config_path ⇒ Object
6
7
8
|
# File 'lib/stack/estate.rb', line 6
def config_path
"#{CONFIGS_PATH}/platform.yml"
end
|
34
35
36
37
38
39
|
# File 'lib/stack/estate.rb', line 34
def init
puts "loading resources ... "
n = ::Bcome::Node::Estate.new({ :platforms => resources.collect(&:node) })
n.set_parent_reference(n, :estate, :platforms)
return n
end
|
45
46
47
|
# File 'lib/stack/estate.rb', line 45
def
super
end
|
#namespace ⇒ Object
26
27
28
|
# File 'lib/stack/estate.rb', line 26
def namespace
starting_namespace
end
|
41
42
43
|
# File 'lib/stack/estate.rb', line 41
def node
@node ||= init
end
|
#starting_namespace ⇒ Object
30
31
32
|
# File 'lib/stack/estate.rb', line 30
def starting_namespace
"" end
|
18
19
20
|
# File 'lib/stack/estate.rb', line 18
def to_s
"Estate"
end
|