Class: Rubysmith::Extensions::Bundler

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysmith/extensions/bundler.rb

Overview

Ensures gem dependencies are installed.

Class Method Summary collapse

Instance Method Summary collapse

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

.callObject



13
# File 'lib/rubysmith/extensions/bundler.rb', line 13

def self.call(...) = new(...).call

Instance Method Details

#callObject



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