Class: Vagrant::DSL::Prison
- Inherits:
-
Object
- Object
- Vagrant::DSL::Prison
- Extended by:
- Forwardable
- Includes:
- GenericMixin
- Defined in:
- lib/vagrant/dsl.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes included from GenericMixin
Instance Method Summary collapse
- #construct_env ⇒ Object
-
#initialize(args) ⇒ Prison
constructor
A new instance of Prison.
Methods included from GenericMixin
Constructor Details
#initialize(args) ⇒ Prison
96 97 98 99 100 |
# File 'lib/vagrant/dsl.rb', line 96 def initialize(args) @config = Vagrant::Prison.new(args[:dir], args.has_key?(:auto_destroy) ? args[:auto_destroy] : true) self.ui_class = args[:ui_class] @env = nil end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
93 94 95 |
# File 'lib/vagrant/dsl.rb', line 93 def config @config end |
Instance Method Details
#construct_env ⇒ Object
102 103 104 |
# File 'lib/vagrant/dsl.rb', line 102 def construct_env @config.construct(:ui_class => ui_class) end |