class Bcome::Orchestrator
Attributes
context[R]
Public Class Methods
new()
click to toggle source
# File lib/objects/orchestrator.rb, line 8 def initialize reset! end
Public Instance Methods
command_output_silenced?()
click to toggle source
# File lib/objects/orchestrator.rb, line 26 def command_output_silenced? @silence == true end
get(breadcrumb = nil)
click to toggle source
# File lib/objects/orchestrator.rb, line 39 def get(breadcrumb = nil) context = ::Bcome::Bootup.traverse(breadcrumb) raise Bcome::Exception::NoNodeFoundForBreadcrumb, breadcrumb unless context context.load_nodes if context.inventory? && !context.nodes_loaded? context end
is_multi_node?()
click to toggle source
# File lib/objects/orchestrator.rb, line 18 def is_multi_node? @multi_node == true end
reset!()
click to toggle source
# File lib/objects/orchestrator.rb, line 12 def reset! @silence = false @tail_command_output = false @multi_node = false end
silence_command_output!()
click to toggle source
# File lib/objects/orchestrator.rb, line 22 def silence_command_output! @silence = true end
tail_all_command_output!(node)
click to toggle source
# File lib/objects/orchestrator.rb, line 30 def tail_all_command_output!(node) @multi_node = node.machines.size > 1 @tail_command_output = true end
tail_all_command_output?()
click to toggle source
# File lib/objects/orchestrator.rb, line 35 def tail_all_command_output? @tail_command_output == true end