Sha256: 1f219356f2135699ea29ac53f5ef762bd83182ea789665029825b302b32fecbe

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

require 'git'

module ErrandBoy
  class Git
    def initialize(working_dir)
      @git = ::Git.open(working_dir)
    end

    def push
      @git.push 'origin', branch
    end

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

    def branch
      @git.lib.branch_current
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
errand-boy-0.1.0 lib/errand_boy/git.rb