Skip to content

Commit

Permalink
fix refresh-mcolective-metadata for ruby 1.8
Browse files Browse the repository at this point in the history
Reported via irc[1], the new harness for generating
facts.yaml doesn't work correctly under older rubies
where the json gem would usually be resolved via rubygems.


This mirrors the behaviour of facter and puppet 
binaries, but without the gating around bundler.

https://github.com/puppetlabs/facter/blob/master/bin/facter#L13
https://github.com/puppetlabs/puppet/blob/stable/lib/puppet/util/command_line.rb#L7

[1]
  • Loading branch information
richardc committed Sep 25, 2014
1 parent e0fbfe6 commit c7b2b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/refresh-mcollective-metadata.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby

require 'rubygems'
require 'facter'
require 'facter/application'

Expand Down

0 comments on commit c7b2b70

Please sign in to comment.