class Gouteur::Bundle

thin wrapper for bundler calls

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/gouteur/bundle.rb, line 6
def initialize(path)
  @path = path
end

Public Instance Methods

depends_on?(gem_name) click to toggle source
# File lib/gouteur/bundle.rb, line 14
def depends_on?(gem_name)
  Shell.run(%W[bundle info #{gem_name}], pwd: path).success?
end
exec(task, env: {}) click to toggle source
# File lib/gouteur/bundle.rb, line 18
def exec(task, env: {})
  name = task.sub(/bundle exec +/, '')
  Shell.run(%W[bundle exec #{name}], pwd: path, env: env)
end
gemfile_path() click to toggle source
# File lib/gouteur/bundle.rb, line 23
def gemfile_path
  File.join(path, 'Gemfile')
end
install(env: {}) click to toggle source
# File lib/gouteur/bundle.rb, line 10
def install(env: {})
  Shell.run(%w[bundle update --quiet --jobs 4], pwd: path, env: env)
end