Class: Chef::Resource::Lxc::LXCTemplate
- Inherits:
-
Object
- Object
- Chef::Resource::Lxc::LXCTemplate
- Defined in:
- lib/chef/resource/lxc.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #args(args) ⇒ Object
-
#initialize(type = 'download') ⇒ LXCTemplate
constructor
A new instance of LXCTemplate.
Constructor Details
#initialize(type = 'download') ⇒ LXCTemplate
Returns a new instance of LXCTemplate.
10 11 12 13 |
# File 'lib/chef/resource/lxc.rb', line 10 def initialize(type='download') @type = type @options = %w{-d ubuntu -r trusty -a amd64} end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/chef/resource/lxc.rb', line 8 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/chef/resource/lxc.rb', line 8 def type @type end |
Instance Method Details
#args(args) ⇒ Object
15 16 17 |
# File 'lib/chef/resource/lxc.rb', line 15 def args(args) @options = args end |