Class: Rubysmith::Extensions::Bundler
- Inherits:
-
Object
- Object
- Rubysmith::Extensions::Bundler
- Defined in:
- lib/rubysmith/extensions/bundler.rb
Overview
Ensures gem dependencies are installed.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, client: ::Bundler::CLI) ⇒ Bundler
constructor
A new instance of Bundler.
Constructor Details
#initialize(configuration, client: ::Bundler::CLI) ⇒ Bundler
Returns a new instance of Bundler.
15 16 17 18 |
# File 'lib/rubysmith/extensions/bundler.rb', line 15 def initialize configuration, client: ::Bundler::CLI @configuration = configuration @client = client end |
Class Method Details
.call ⇒ Object
13 |
# File 'lib/rubysmith/extensions/bundler.rb', line 13 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
20 21 22 23 |
# File 'lib/rubysmith/extensions/bundler.rb', line 20 def call configuration.project_root.change_dir { client.start %w[install --quiet] } configuration end |