Sha256: df262046e67a21c9cad67eb836aa319114a961f10f5395a47aef695f8d7f523c
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require 'git-utils/command' class PushBranch < Command def parser OptionParser.new do |opts| opts.banner = "Usage: git push-branch" opts.on_tail("-h", "--help", "this usage guide") do puts opts.to_s; exit 0 end end end # Returns a command appropriate for executing at the command line def cmd c = ["git push origin #{current_branch}"] c << argument_string(unknown_options) unless unknown_options.empty? c.join(" ") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git-utils-0.5.7 | lib/git-utils/push_branch.rb |
git-utils-0.5.6 | lib/git-utils/push_branch.rb |