Class: KeepUp::VersionControl
- Inherits:
-
Object
- Object
- KeepUp::VersionControl
- Defined in:
- lib/keep_up/version_control.rb
Overview
Interface to the version control system (only Git is supported).
Instance Method Summary collapse
Instance Method Details
#commit_changes(dependency) ⇒ Object
4 5 6 |
# File 'lib/keep_up/version_control.rb', line 4 def commit_changes(dependency) `git ci -am "Update #{dependency.name} to #{dependency.version}"` end |
#revert_changes ⇒ Object
8 9 10 |
# File 'lib/keep_up/version_control.rb', line 8 def revert_changes `git reset --hard` end |