Method: ChefSpec::Librarian#setup!
- Defined in:
- lib/chefspec/librarian.rb
#setup! ⇒ Object
Setup and install the necessary dependencies in the temporary directory.
27 28 29 30 31 32 33 34 |
# File 'lib/chefspec/librarian.rb', line 27 def setup! env = ::Librarian::Chef::Environment.new(project_path: Dir.pwd) @originalpath, env.config_db.local["path"] = env.config_db.local["path"], @tmpdir ::Librarian::Action::Resolve.new(env).run ::Librarian::Action::Install.new(env).run ::RSpec.configure { |config| config.cookbook_path = @tmpdir } end |