Module: Alphonse::Configs::Bundler

Included in:
Operator
Defined in:
lib/alphonse/configs/bundler.rb

Instance Method Summary collapse

Instance Method Details

#bundle_exec(command) ⇒ Object



4
5
6
7
# File 'lib/alphonse/configs/bundler.rb', line 4

def bundle_exec(command)
  use_bundle = using_bundler? ? "#{ruby_bin_path}bundle exec " : ""
  "#{use_bundle}#{command}"
end

#bundle_installObject



9
10
11
# File 'lib/alphonse/configs/bundler.rb', line 9

def bundle_install
  "#{ruby_bin_path}bundle install --deployment --without development test" if using_bundler?
end

#rake(command) ⇒ Object



13
14
15
# File 'lib/alphonse/configs/bundler.rb', line 13

def rake(command)
  bundle_exec "rake #{command}"
end