Class: Berkshelf::Vagrant::Action::Install
- Inherits:
-
Object
- Object
- Berkshelf::Vagrant::Action::Install
- Defined in:
- lib/berkshelf/vagrant/action/install.rb
Overview
Instance Attribute Summary collapse
-
#berksfile ⇒ Object
readonly
Returns the value of attribute berksfile.
-
#shelf ⇒ Object
readonly
Returns the value of attribute shelf.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Install
constructor
A new instance of Install.
Constructor Details
Instance Attribute Details
#berksfile ⇒ Object (readonly)
Returns the value of attribute berksfile.
8 9 10 |
# File 'lib/berkshelf/vagrant/action/install.rb', line 8 def berksfile @berksfile end |
#shelf ⇒ Object (readonly)
Returns the value of attribute shelf.
7 8 9 |
# File 'lib/berkshelf/vagrant/action/install.rb', line 7 def shelf @shelf end |
Instance Method Details
#call(env) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/berkshelf/vagrant/action/install.rb', line 16 def call(env) if Berkshelf::Vagrant.chef_solo?(env[:vm].config) configure_cookbooks_path(env) install(env) end @app.call(env) rescue BerkshelfError => e raise VagrantWrapperError.new(e) end |