module Alphonse::Configs::Bundler

Public Instance Methods

bundle_exec(command) click to toggle source
# 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_install() click to toggle source
# 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) click to toggle source
# File lib/alphonse/configs/bundler.rb, line 13
def rake(command)
  bundle_exec "rake #{command}"
end

Private Instance Methods

ruby_bin_path() click to toggle source
# File lib/alphonse/configs/bundler.rb, line 23
def ruby_bin_path
  config[:ruby_bin_path] rescue nil
end
using_bundler?() click to toggle source
# File lib/alphonse/configs/bundler.rb, line 19
def using_bundler?
  File.exists? "Gemfile"
end