Class: ZugZug::CLI
- Inherits:
-
Thor
- Object
- Thor
- ZugZug::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/zug_zug/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
15 16 17 |
# File 'lib/zug_zug/cli.rb', line 15 def self.source_root File.join __dir__, "templates" end |
Instance Method Details
#join(faction) ⇒ Object
8 9 10 11 12 13 |
# 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 |