Class: Hookify::Command::PreRelease

Inherits:
Base
  • Object
show all
Defined in:
lib/hookify/commands/pre_release.rb

Instance Method Summary collapse

Methods inherited from Base

#command_name, #file_name, #file_path, #initialize, #remove_file, #ruby_script_path, #run, #write_file

Methods included from Helpers

#display, #error, #executable, #home_directory, #hooks_directory, #running_on_a_mac?, #running_on_windows?

Constructor Details

This class inherits a constructor from Hookify::Command::Base

Instance Method Details

#createObject



4
5
6
7
8
# File 'lib/hookify/commands/pre_release.rb', line 4

def create
  write_file
  display("This runs before every 'git commit'\n")
  true
end

#destroyObject



10
11
12
# File 'lib/hookify/commands/pre_release.rb', line 10

def destroy
  remove_file
end