Class: KeepUp::VersionControl

Inherits:
Object
  • Object
show all
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_changesObject



8
9
10
# File 'lib/keep_up/version_control.rb', line 8

def revert_changes
  `git reset --hard`
end