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.



9
10
11
# File 'lib/bunup/services/updater.rb', line 9

def initialize(gem)
  @gem = gem
end

Instance Method Details

#performObject



13
14
15
# File 'lib/bunup/services/updater.rb', line 13

def perform
  update
end