Sha256: 5304dc03346156e41f7d69400c2cd0fbb8d066a93d85c70886bf245524ce4d54
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require 'open3' module Texico module Git module_function def init(target, initial_commit = false) if initial_commit system "git init '#{target}' && git -C '#{target}' add . " \ "&& git -C '#{target}' commit -m 'Initial commit'" else system "git init '#{target}'" end end module_function def tag(target, label, message) system "git -C '#{target}' tag -a #{label} -m '#{message}'" end module_function def list_tags(target) Open3.popen2 "git -C '#{target}' tag -l" do |_, stdout, _| stdout.each_line.map { |line| line.chomp } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
texico-0.2.0 | lib/texico/git.rb |