Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use ./lib/brighter_planet_metadata.rb if you're calling ./bin/brighte…
…r_planet_metadata from your local repo (working copy)
  • Loading branch information
seamusabshere committed Oct 6, 2011
1 parent 3cf8de3 commit d3ca853
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/brighter_planet_metadata
Expand Up @@ -3,5 +3,14 @@
unless RUBY_VERSION >= '1.9'
require 'rubygems'
end
require "brighter_planet_metadata"

if File.exist?(File.join(Dir.pwd, 'brighter_planet_metadata.gemspec'))
require 'bundler'
Bundler.setup
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
end

require 'brighter_planet_metadata'

puts BrighterPlanet.metadata.send(ARGV[0])

0 comments on commit d3ca853

Please sign in to comment.