Class: Rubysmith::Extensions::Bundler
- Inherits:
-
Object
- Object
- Rubysmith::Extensions::Bundler
- Defined in:
- lib/rubysmith/extensions/bundler.rb
Overview
Ensures gem dependencies are installed.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client: ::Bundler::CLI) ⇒ Bundler
constructor
A new instance of Bundler.
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
#call ⇒ Object
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 |