Sha256: 2fa57e7799e865456a0747abbeb3c0389e4b43a57b6b7dd98f335e02450c61cd

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

require 'git'

module Incr
  module Service
    class Repository
      def initialize(path)
        @git = Git.init(path)
      end

      def add(filename)
        @git.add(filename)
      end

      def commit(message)
        @git.commit(message)
      end

      def tag(name)
        @git.add_tag(name, annotate: true, message: name)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
incr-1.0.0 lib/incr/service/repository.rb