module Runpuppet

http client

Constants

VERSION

Public Class Methods

setup_context(options={}) click to toggle source
# File lib/runpuppet.rb, line 18
def self.setup_context(options={})
  ctx = Dim::Container.new

  ctx.register(:run_options) do
    options
  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