Class: GitHooks::CLI
- Inherits:
-
Thor
- Object
- Thor
- GitHooks::CLI
- Defined in:
- lib/git_hooks/cli.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/git_hooks/cli.rb', line 24 def init example_file = File.( '../../../git_hooks.yml.example', __FILE__ ) destination_path = File.('.git_hooks.yml', Dir.pwd) FileUtils.cp(example_file, destination_path) end |