class GitHooks::CLI
Public Instance Methods
init()
click to toggle source
# File lib/git_hooks/cli.rb, line 24 def init example_file = File.expand_path( '../../../git_hooks.yml.example', __FILE__ ) destination_path = File.expand_path('.git_hooks.yml', Dir.pwd) FileUtils.cp(example_file, destination_path) end
install(hook)
click to toggle source
# File lib/git_hooks/cli.rb, line 14 def install(hook) GitHooks::Installer.new(hook).install(options[:force]) end
version()
click to toggle source
# File lib/git_hooks/cli.rb, line 35 def version puts GitHooks::VERSION end