Module: KnifeContainer::Command
- Included in:
- Chef::Knife::ContainerDockerInit
- Defined in:
- lib/knife-container/command.rb
Instance Method Summary collapse
-
#chef_runner ⇒ Object
An instance of ChefRunner.
-
#docker_cookbook_path ⇒ Object
Path to the directory where the code_generator cookbook is located.
-
#generator_context ⇒ Object
Delegates to ‘Generator.context`, the singleton instance of Generator::Context.
Instance Method Details
#chef_runner ⇒ Object
An instance of ChefRunner. Calling ChefRunner#converge will trigger convergence and generate the desired code.
26 27 28 |
# File 'lib/knife-container/command.rb', line 26 def chef_runner @chef_runner ||= ChefRunner.new(docker_cookbook_path, ["knife_container::#{recipe}"]) end |
#docker_cookbook_path ⇒ Object
Path to the directory where the code_generator cookbook is located. For now, this is hard coded to the ‘skeletons’ directory in this repo.
33 34 35 |
# File 'lib/knife-container/command.rb', line 33 def docker_cookbook_path File.("../skeletons", __FILE__) end |