Top Level Namespace
Defined Under Namespace
Modules: Goliath, SenorArmando
Constant Summary collapse
- RACK_ENV =
ENV["RACK_ENV"] || "development"
Instance Method Summary collapse
Instance Method Details
#try_or_exec_bootstrap(try_bootstrap = true, &block) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/senor_armando/use_gemfile_jail.rb', line 20 def try_or_exec_bootstrap try_bootstrap=true, &block if try_bootstrap && (not block.call) cmd = Goliath.root_path("bin/create_gemfile_jail.rb") warn "WARN The gem environment is out-of-date or has yet to be bootstrapped." warn " Runnning '#{cmd} --local' to remedy this situation. " warn " if you get an error about 'rake' or somesuch not installed, " warn " run #{cmd} explicitly (without the --local flag)." system cmd, "--local" end if not block.call warn "FAIL The gem environment is out-of-date. Run 'bundle install' explicitly and then retry" fail "gem environment not configured" end end |