Class: Chef::Resource::Lxc::LXCTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/resource/lxc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/chef/resource/lxc.rb', line 8

def options
  @options
end

#typeObject (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