Skip to content

Instantly share code, notes, and snippets.

@duritong
Created November 25, 2010 01:30
Show Gist options
  • Save duritong/714765 to your computer and use it in GitHub Desktop.
Save duritong/714765 to your computer and use it in GitHub Desktop.
did it become that difficult?
require 'puppet/util/run_mode'
$puppet_application_mode = Puppet::Util::RunMode.new(:master)
require 'puppet'
require 'puppet/rails'
Puppet.settings.unsafe_parse('/etc/puppet/puppet.conf')
Puppet::Rails.connect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment