Sha256: 0ea023abf245115300c13013e3278d69cb463513e0f165d0d3e3b3ac1f968fc9
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 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) message = "Update #{dependency.name} to version #{dependency.version}" @runner.run "git commit -am '#{message}'" end def revert_changes @runner.run "git reset --hard" end def clean? @runner.run("git status -s") == "" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
keep_up-0.11.0 | lib/keep_up/version_control.rb |
keep_up-0.10.2 | lib/keep_up/version_control.rb |
keep_up-0.10.1 | lib/keep_up/version_control.rb |
keep_up-0.10.0 | lib/keep_up/version_control.rb |