Sha256: c48f52931d36b11097c10c203add93be1be8c46930a16001cfa174ef5cadc6d8
Contents?: true
Size: 419 Bytes
Versions: 4
Compression:
Stored size: 419 Bytes
Contents
module Dude module Git class Checkout include Service def call checkout if options[:branch_name] print_message end def checkout git.branch(options[:branch_name]).checkout end def print_message puts "Branch changed to '#{options[:branch_name]}'".colorize(:green) end def git @git ||= ::Git.init end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dude-cli-1.0.2 | lib/dude/git/checkout.rb |
dude-cli-1.0.1 | lib/dude/git/checkout.rb |
dude-cli-1.0.0 | lib/dude/git/checkout.rb |
dude-cli-0.6.2.pre.rc1 | lib/dude/git/checkout.rb |