Class: Bozo::DependencyResolvers::Bundler
- Inherits:
-
Object
- Object
- Bozo::DependencyResolvers::Bundler
- Defined in:
- lib/bozo/dependency_resolvers/bundler.rb
Overview
Class for resolving dependencies using Bundler.
Instance Method Summary collapse
-
#execute ⇒ Object
Ensures Bundler is installed and then calls installs the gems specified in your Gemfile.
-
#initialize ⇒ Bundler
constructor
Creates a new instance.
-
#use_pre(pre = true) ⇒ Object
Decides whether when installing Bundler if the pre version of the gem should be installed.
Constructor Details
#initialize ⇒ Bundler
Creates a new instance.
7 8 9 |
# File 'lib/bozo/dependency_resolvers/bundler.rb', line 7 def initialize @pre = false end |
Instance Method Details
#execute ⇒ Object
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.
29 30 31 |
# File 'lib/bozo/dependency_resolvers/bundler.rb', line 29 def use_pre(pre = true) @pre = pre end |