Sha256: 4110918783cda7e4f438251cc1520e142aee584524f6dbc5290527d10af0ec0f

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keep_up-0.4.0 lib/keep_up/version_control.rb
keep_up-0.3.0 lib/keep_up/version_control.rb
keep_up-0.2.0 lib/keep_up/version_control.rb
keep_up-0.1.0 lib/keep_up/version_control.rb