Sha256: 54e6c33c6ddfaca66993bd0cd9e3686274766c8673cfedc11cb7ee156a96328f
Contents?: true
Size: 445 Bytes
Versions: 9
Compression:
Stored size: 445 Bytes
Contents
require 'git-utils/command' class Sync < Command def parser OptionParser.new do |opts| opts.banner = "Usage: git sync" 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 checkout master"] c << "git pull" c << "git checkout #{current_branch}" c.join("\n") end end
Version data entries
9 entries across 9 versions & 1 rubygems