class ZugZug::CLI
Public Class Methods
source_root()
click to toggle source
# File lib/zug_zug/cli.rb, line 15 def self.source_root File.join __dir__, "templates" end
Public Instance Methods
join(faction)
click to toggle source
# File lib/zug_zug/cli.rb, line 8 def join(faction) FileUtils.chmod 0751, template("post_checkout", ".git/hooks/post-checkout", faction: faction) FileUtils.chmod 0751, template("post_merge", ".git/hooks/post-merge", faction: faction) puts "You are now part of the #{faction}!" end