Class: Gemdiff::GemUpdater
- Inherits:
-
Object
- Object
- Gemdiff::GemUpdater
- Defined in:
- lib/gemdiff/gem_updater.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #clean? ⇒ Boolean
- #commit ⇒ Object
- #diff ⇒ Object
-
#initialize(name) ⇒ GemUpdater
constructor
A new instance of GemUpdater.
- #reset ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize(name) ⇒ GemUpdater
Returns a new instance of GemUpdater.
7 8 9 |
# File 'lib/gemdiff/gem_updater.rb', line 7 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/gemdiff/gem_updater.rb', line 5 def name @name end |
Instance Method Details
#clean? ⇒ Boolean
31 32 33 |
# File 'lib/gemdiff/gem_updater.rb', line 31 def clean? git_diff.empty? end |
#commit ⇒ Object
23 24 25 |
# File 'lib/gemdiff/gem_updater.rb', line 23 def commit git_commit end |
#diff ⇒ Object
15 16 17 |
# File 'lib/gemdiff/gem_updater.rb', line 15 def diff git_diff end |
#reset ⇒ Object
27 28 29 |
# File 'lib/gemdiff/gem_updater.rb', line 27 def reset git_reset end |
#show ⇒ Object
19 20 21 |
# File 'lib/gemdiff/gem_updater.rb', line 19 def show git_show end |
#update ⇒ Object
11 12 13 |
# File 'lib/gemdiff/gem_updater.rb', line 11 def update bundle_update end |