Method: CommitMsgUrlShortener::HookScript#create

Defined in:
lib/commit-msg-url-shortener/hook_script.rb

#createObject



68
69
70
71
72
# File 'lib/commit-msg-url-shortener/hook_script.rb', line 68

def create
  open('wb') {|file| file.puts "#!/bin/sh"}
  @interpreter = 'sh'
  make_executable
end