Sha256: 3065a7770c2f4b25ce4f3a850632a4a1f79052fd8a2556f22d7271894ace44ad

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

module KeepUp
  # Interface to the version control system (only Git is supported).
  class VersionControl
    def commit_changes(dependency)
      `git ci -am "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

2 entries across 2 versions & 1 rubygems

Version Path
keep_up-0.5.1 lib/keep_up/version_control.rb
keep_up-0.5.0 lib/keep_up/version_control.rb