class Nucleon::Action::Cloud::Inspect

Public Class Methods

describe() click to toggle source
# File lib/nucleon/action/cloud/inspect.rb, line 10
def self.describe
  super(:cloud, :inspect, 950)
end

Public Instance Methods

arguments() click to toggle source
# File lib/nucleon/action/cloud/inspect.rb, line 25
def arguments
  [ :elements ]
end
configure() click to toggle source
# File lib/nucleon/action/cloud/inspect.rb, line 17
def configure
  super do
    register :elements, :array, []
  end
end
execute() click to toggle source
# File lib/nucleon/action/cloud/inspect.rb, line 32
def execute
  super do |node, network|
    ensure_network(network) do
      if settings[:elements].empty?
        data = network.config.export
      else
        data = network.config.get(settings[:elements])
      end
      ui.info("\n\n" + CORL.render_object(data) + "\n\n")
    end
  end
end