Method: Runpuppet.setup_context
- Defined in:
- lib/runpuppet.rb
.setup_context(options = {}) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/runpuppet.rb', line 18 def self.setup_context(={}) ctx = Dim::Container.new ctx.register(:run_options) do end ctx.register(:config) do Runpuppet::Config.find_system_config end ctx.register(:client) do |context| Runpuppet::Client.new(context) end ctx.register(:agent) do |context| Runpuppet::Agent.new(context) end ctx.register(:logger) do Runpuppet::Logger end return ctx end |