Sha256: 568b59815b2e8798480e80f15dbf3869e21e2ce1b9f37dc09bebb03f04c6fb8e

Contents?: true

Size: 717 Bytes

Versions: 9

Compression:

Stored size: 717 Bytes

Contents

module PoolParty    
  module Resources
        
=begin rdoc
== Variable

Describes a variable to use in a template. One of the powerful hidden features behind puppet is that you can use templating for your templates

== Usage

  has_variable(:name => '...') do
    # More options. 
    # This block is optional
  end

== Options

* <tt>name</tt> The name of the variable to use in the template
* <tt>value</tt> The value of the variable in the template

To use these variables, in your Erb template, reference them like so
  
  name: <%= variablename %>

== Examples

  has_variable(:name => "name", :value => "#{cloud.name}")
=end
    class Variable < Resource
      dsl_methods :name, :value
    end
    
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
auser-poolparty-1.2.10 lib/poolparty/resources/variable.rb
auser-poolparty-1.2.11 lib/poolparty/resources/variable.rb
auser-poolparty-1.2.12 lib/poolparty/resources/variable.rb
auser-poolparty-1.2.3 lib/poolparty/resources/variable.rb
auser-poolparty-1.2.4 lib/poolparty/resources/variable.rb
auser-poolparty-1.2.7 lib/poolparty/resources/variable.rb
auser-poolparty-1.2.8 lib/poolparty/resources/variable.rb
auser-poolparty-1.2.9 lib/poolparty/resources/variable.rb
fairchild-poolparty-1.2.12 lib/poolparty/resources/variable.rb