Class: Bunup::Services::Updater

Inherits:
Object
  • Object
show all
Defined in:
lib/bunup/services/updater.rb

Overview

Use bundler to update the gem and the Gemfile

Constant Summary collapse

USING_PATTERN =
/^Using (?<gem_name>.*) (?<installed>.*)$/.freeze

Instance Method Summary collapse

Constructor Details

#initialize(gem) ⇒ Updater

Returns a new instance of Updater.



7
8
9
# File 'lib/bunup/services/updater.rb', line 7

def initialize(gem)
  @gem = gem
end

Instance Method Details

#performObject



11
12
13
# File 'lib/bunup/services/updater.rb', line 11

def perform
  update
end