module KnifeContainer::Command
Public Instance Methods
chef_runner()
click to toggle source
An instance of ChefRunner
. Calling ChefRunner#converge
will trigger convergence and generate the desired code.
# 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()
click to toggle source
Path to the directory where the code_generator cookbook is located. For now, this is hard coded to the 'skeletons' directory in this repo.
# File lib/knife-container/command.rb, line 33 def docker_cookbook_path File.expand_path("../skeletons", __FILE__) end
generator_context()
click to toggle source
Delegates to `Generator.context`, the singleton instance of Generator::Context
# File lib/knife-container/command.rb, line 39 def generator_context Generator.context end