3 # This file can be Exec'ed without spawning a new shell
4 # It lets you run rake with a full Gitorious environment
9 def initialize(env); @env = env; end
10 def production
?; @env == "production"; end
11 def development
?; @env == "development"; end
12 def test
?; @env == "test"; end
18 (Pathname(__FILE__
) + "../../").realpath
22 @env ||= RailsEnv
.new("production")
26 ENV["BUNDLE_GEMFILE"] = Rails
.root
+ "Gemfile"
29 require "bundler/setup"
31 load Gem
.bin_path("rake", "rake")