def write!
      unless inside_repository?
        log_error "not currently in a git repository"
        return false
      end
      
      if hook_exists?
        log_error "post-update hook already exists in this repository"
        return false
      end
      
      File.open(hook_path, 'a') {|f| f.write hook_content}
      FileUtils.chmod('u+x', hook_path)
      
      log_info 'tinyci post-update hook installed successfully'
    end
def write!
      unless inside_repository?
        log_error "not currently in a git repository"
        return false
      end
      
      if hook_exists?
        log_error "post-update hook already exists in this repository"
        return false
      end
      
      File.open(hook_path, 'a') {|f| f.write hook_content}
      FileUtils.chmod('u+x', hook_path)
      
      log_info 'tinyci post-update hook installed successfully'
    end
Constructor

 @param [String] working_dir The directory from which to run. Does not have to be the root of the repo
 @param [Logger] logger Logger object
 Write the hook to the relevant path and make it executable