Sha256: 34b24e33e1ff29bc55815c233f59688c846854636d0b2f70b3cd7ebe6fc1533a

Contents?: true

Size: 647 Bytes

Versions: 6

Compression:

Stored size: 647 Bytes

Contents

module CORL
module Action
class Lookup < Plugin::CloudAction
 
  #-----------------------------------------------------------------------------
  # Settings
  
  def configure
    super do
      register :property, :str, nil
    end
  end
  
  #---
  
  def arguments
    [ :property ]
  end

  #-----------------------------------------------------------------------------
  # Operations
   
  def execute
    super do |node, network|
      ensure_node(node) do
        property = settings[:property]
        value    = node.lookup(property)
      
        ui.info(sprintf("#{property} = %s", value.inspect))
      end
    end
  end
end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
corl-0.4.21 lib/CORL/action/lookup.rb
corl-0.4.20 lib/CORL/action/lookup.rb
corl-0.4.19 lib/CORL/action/lookup.rb
corl-0.4.18 lib/CORL/action/lookup.rb
corl-0.4.17 lib/CORL/action/lookup.rb
corl-0.4.16 lib/CORL/action/lookup.rb