Method: Runbook::Generators::Project#init_gem
- Defined in:
- lib/runbook/generators/project/project.rb
#init_gem ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/runbook/generators/project/project.rb', line 26 def init_gem bundle_exists = "which bundle 2>&1 1>/dev/null" raise "Please ensure bundle is installed" unless system(bundle_exists) inside([:root]) do test = "--test #{options[:test]}" continue = ( run("bundle gem #{_name} #{test} --no-coc --no-mit") || [:pretend] ) exit 1 unless continue end end |