summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)AuthorFilesLines
2014-05-27(PUP-2478) Remove current directory from Ruby load path.Peter Huene1-0/+4
The current directory ('.') is on the load path for Ruby 1.8.7. This is a security vulnerability as it allows arbitrary code loading if users create ruby source files with names that correspond to those that puppet is trying to load. The fix is to explicitly remove '.' from the load path before any code is loaded by puppet.
2013-04-10(maint) Readd execute permission to bin/puppetAdrien Thebo1-0/+0
While doing testing around GH-1582 I wound up using a shared filesystem with Windows, which casually stomped the execute permission for bin/puppet. This commit readds the execute bit.
2013-04-09(maint) Use stub over puppet type objectAdrien Thebo1-0/+0
Using an object of class Puppet::Type::Cron is too error prone, as instantiation of those objects have a lot of side effects. This replaces the actual object with a stub to minimize the possible side effects.
2013-01-06(maint) Add Travis CI SupportJeff McCune1-0/+0
This patch adds Travis support. It also makes sure that `bundle install --path vendor` works with `bundle exec rake spec`. This patch should coincide with enabling Travis CI support for pull requests. A build status image is also included in the project README.
2012-10-08(#16757) Move rubygems require to application entry pointJosh Cooper1-8/+0
The previous commit removed the side-effect of loading rubygems as a result of evaluating the `Puppet.features.rubygems?` feature. As a result, the puppet script was the only place where we loaded rubygems, breaking rack setups. This commit moves the loading of rubygems into the Puppet::Util::CommandLine, which is effectively puppet's entry point for both command line and rack setsups. In addition, `Bundler::Setup` doesn't always seem to exist, at least not in all versions of bundler, so instead we're using `::Bundler` to detect if it's loaded. Paired-with: Andy Parker <andy@puppetlabs.com>
2012-10-03(#16757) Don't load rubygems if bundler is runningPatrick Carlisle1-3/+5
If bundler is handling gems we don't want to load rubygems ourselves, as it can conflict and cause loading of system gems beyond what bundler has set up.
2012-09-05Merge branch 'hiera-puppet-for-merge' into ↵Daniel Pittman1-0/+56
maint/3.x/merge-hiera-puppet-into-core Conflicts: .gitignore CHANGELOG LICENSE README.md Rakefile ext/debian/changelog.erb ext/debian/compat ext/debian/control ext/debian/copyright ext/debian/rules ext/osx/preflight.erb spec/spec_helper.rb spec/watchr.rb Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
2012-06-10(maint) Follow Puppet Labs style guide + code cleanupKelsey Hightower1-26/+26
The hiera-puppet code base now uses two space indentation. This patch also removes unnecessary calls to `Hiera::Scope`, which is no longer required because core Puppet's scope object allows variable lookup via the `[]` method. This commit includes updated specs.
2012-05-11Move rubygems require to executable entry points to PuppetPatrick Carlisle1-0/+6
We were trying to load rubygems in lib/puppet.rb so that we could load other libraries installed as gems, but this isn't anywhere near the first file loaded. By moving this into bin/puppet and other executable entry points, we ensure that rubygems is loaded as early as possible.
2012-05-11Remove deprecated standalone executablesPatrick Carlisle4-20/+0
This removes the standalone filebucket, pi, puppetdoc, and ralsh commands.
2011-06-06Improve exampleR.I.Pienaar1-0/+56
2010-07-09[#4196] Move the docs into the source directory structureJesse Wolfe5-358/+0
Since it is no longer possible to find the running executable from the call stack, docs have to be kept somewhere in the source tree. Of course, at this point, we shouldn't be using RDoc::Usage at all.
2010-02-17Fix #3932 - Add --charset to puppetdoc for RDoc modeBrice Figureau1-1/+4
This adds the --charset option to puppetdoc for RDoc mode. This allows to set the charset for the generated html. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2010-02-17feature #2276 Single Executable: CommandLine can be instantiatedJesse Wolfe1-17/+1
refactor CommandLine to be an object Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17feature #2276 Single Executable: subcommand methodJesse Wolfe1-6/+6
Extract the logic to determine the subcommand name into a method. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17feature #2276 Single Executable: help infoJesse Wolfe4-24/+25
Change the --help text to match the new single executable invocations Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17feature #2276 Single Executable: help for applyJesse Wolfe1-0/+69
restore the help text for the apply command Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17feature #2276 Single Executable: legacy settingsJesse Wolfe1-6/+6
Puppet's defaults change depending on which command invokes them. This patch makes sure that we use the maintain the current behavior. This is a temporary fix until I implement feature #2935. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17feature #2276 Single Executable: "puppet describe"Jesse Wolfe1-2/+2
Add "puppet describe" as the new invocation of "pi" Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17Fix #3552 single executable should display usageJesse Wolfe1-71/+0
Added some tests to make the single executable command behavior explicit. Added logic to display the usage message if we're on a tty and no arguments are passed. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17Fix #3552 single executable should display usageJesse Wolfe1-6/+3
Added some tests to make the single executable command behavior explicit. Added logic to display the usage message if we're on a tty and no arguments are passed. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-04-09Fixing 'puppet' to directly run manifestsLuke Kanies1-1/+6
It was previously requiring that you specify an application name, thus breaking the ability to easily run commands like: puppet ~/bin/test.pp Or even having '#/usr/bin/env puppet --verbose' in the first line of an executable script and having that work. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
2010-04-09Moving puppet back to binLuke Kanies1-0/+18
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
2010-02-17Renaming the old puppet executableRein Henrichs1-2/+2
2010-02-17Fix application name in bin/ralshRein Henrichs1-1/+1
2010-02-17Renaming applications, mostly removing 'puppet'Luke Kanies1-2/+2
Signed-off-by: Luke Kanies <luke@madstop.com>
2009-08-01Signed-off-by: Eric Sorenson <ahpook@gmail.com>Eric Sorenson3-3/+3
Apologies if this violates the no-trivial-patches rule. I am getting used to git and this seemed like a harmless place to start. Documentation fix for help text, configuration reference URL is 404 now. Updated to equivalent page on wiki, fixes #2466 Signed-off-by: Eric Sorenson <ahpook@gmail.com>
2009-07-10Added Markdown mode to puppetdoc to output Markdown.James Turnbull1-2/+4
Requires the pandoc binary to function (http://johnmacfarlane.net/pandoc/).
2009-06-13Fixed pi binary so --meta option works and updated documentationDavid Lutterkort1-2/+6
Signed-off-by: James Turnbull <james@lovedthanlost.net>
2009-06-12Fixed #2052 - Added -e option to puppet --help outputJames Turnbull1-1/+4
2009-06-12Fixed pi testsJames Turnbull1-1/+2
2009-06-12Fixed #2222 - Cleanup pi binary options and --help outputJames Turnbull1-6/+34
2009-06-06Removed extra whitespace from end of linesIan Taylor3-5/+5
2009-04-28Moved puppetqd binaryJames Turnbull1-53/+0
2009-04-22Adding daemonization to puppetqdLuke Kanies1-0/+0
This will need to be modified on the merge into 0.25, because the daemon module becomes a class, but that should be easy enough. Signed-off-by: Luke Kanies <luke@madstop.com>
2009-04-22Adding puppetqd executable.Luke Kanies1-0/+53
This uses the backported Application class, with a couple of backported monkey-patches so the class works as expected but in 0.24. Signed-off-by: Luke Kanies <luke@madstop.com>
2009-03-21Moved of puppetd, puppetca, puppetmasterd, puppetrun binary from bin to sbinJames Turnbull4-455/+0
2009-02-16Move puppetd to the Application Controller paradigmBrice Figureau1-270/+2
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move puppetdoc to the Application Controller paradigmBrice Figureau1-195/+2
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move ralsh to the Application Controller paradigmBrice Figureau1-185/+2
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move puppetrun to Application Controller paradigmBrice Figureau1-241/+2
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move pi to the Application Controller paradigmBrice Figureau1-220/+3
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move puppetmasterd to Puppet::ApplicationBrice Figureau1-166/+2
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move puppet to the Application Controller paradigmBrice Figureau1-189/+2
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move filebucket to the Application Controller paradigmBrice Figureau1-118/+4
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16Move puppetca to the Application Controller paradigmBrice Figureau1-101/+2
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-06Fixing tests broken during the #1405 fix.Luke Kanies2-2/+8
Most of these were small changes, like moved methods. Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06Creating and using a new Puppet::Daemon classLuke Kanies2-52/+25
This replaces the short-lived EventManager class, all of the service- and timer-related code in puppet.rb, and moves code from agent.rb, server.rb, and other places into one class responsible for starting, stopping, pids, and more. The Daemon module is no longer in existence, so it's been removed from the classes that were using it. Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06Splitting the Agent class into Agent and ConfigurerLuke Kanies1-10/+16
Once I went to add runinterval support to the Agent class, I realized it's really two classes: One that handles starting, stopping, running, et al (still called Agent), and one that handles downloading the catalog, running it, etc. (now called Configurer). This commit includes some additional code, but 95% of it is just moving code around. Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06Removing an erroneous configuration call in puppetmasterdLuke Kanies1-1/+0
Signed-off-by: Luke Kanies <luke@madstop.com>