Sha256: 8f712f322fb23c53e9f96b7dd8850e78f6e50ee19c8f29381ff8bfebd98c0162
Contents?: true
Size: 349 Bytes
Versions: 4
Compression:
Stored size: 349 Bytes
Contents
module KeepUp # Interface to the version control system (only Git is supported). class VersionControl def commit_changes(dependency) `git commit -am "Auto-update #{dependency.name} to #{dependency.version}"` end def revert_changes `git reset --hard` end def clean? `git status -s` == '' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
keep_up-0.6.3 | lib/keep_up/version_control.rb |
keep_up-0.6.2 | lib/keep_up/version_control.rb |
keep_up-0.6.1 | lib/keep_up/version_control.rb |
keep_up-0.6.0 | lib/keep_up/version_control.rb |