Class: Bozo::DependencyResolvers::Bundler

Inherits:
Object
  • Object
show all
Defined in:
lib/bozo/dependency_resolvers/bundler.rb

Overview

Class for resolving dependencies using Bundler.

Instance Method Summary collapse

Constructor Details

#initializeBundler

Creates a new instance.



7
8
9
# File 'lib/bozo/dependency_resolvers/bundler.rb', line 7

def initialize
  @pre = false
end

Instance Method Details

#executeObject

Ensures Bundler is installed and then calls installs the gems specified in your Gemfile.



13
14
15
16
# File 'lib/bozo/dependency_resolvers/bundler.rb', line 13

def execute
  ensure_bundler_installed
  install_gems
end

#use_pre(pre = true) ⇒ Object

Decides whether when installing Bundler if the pre version of the gem should be installed.

Parameters:

  • pre (Boolean) (defaults to: true)

    Whether the pre version of the Bundler gem should be installed.

    The pre version of Bundler will not be used unless explicitly requested.

    Calling the method without any arguments will request that the pre version should be used.



29
30
31
# File 'lib/bozo/dependency_resolvers/bundler.rb', line 29

def use_pre(pre = true)
  @pre = pre
end