Sha256: 7c5bfcb2643ebeceecd8375b25ba7dd59d657398a0ca2d3d90d367c3334e782c
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module KeepUp # Interface to the version control system (only Git is supported). class VersionControl def initialize(runner:) @runner = runner end def commit_changes(dependency) @runner.run "git commit -am 'Auto-update #{dependency.name} to #{dependency.version}'" end def revert_changes @runner.run 'git reset --hard' end def clean? @runner.run('git status -s') == '' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
keep_up-0.8.0 | lib/keep_up/version_control.rb |
keep_up-0.7.1 | lib/keep_up/version_control.rb |
keep_up-0.7.0 | lib/keep_up/version_control.rb |