Class: Rubysmith::Extensions::Bundler

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

Overview

Ensures gem dependencies are installed.

Instance Method Summary collapse

Constructor Details

#initialize(client: ::Bundler::CLI) ⇒ Bundler

Returns a new instance of Bundler.



17
18
19
20
# File 'lib/rubysmith/extensions/bundler.rb', line 17

def initialize(client: ::Bundler::CLI, **)
  @client = client
  super(**)
end

Instance Method Details

#callObject



22
23
24
25
26
27
# File 'lib/rubysmith/extensions/bundler.rb', line 22

def call
  logger.info { "Installing gem dependencies..." }
  install
rescue ::Bundler::HTTPError
  log_error
end