class Thor::Actions::CreateLink

def invoke!

def invoke!
  invoke_with_conflict_check do
    require "fileutils"
    FileUtils.mkdir_p(File.dirname(destination))
    # Create a symlink by default
    config[:symbolic] = true if config[:symbolic].nil?
    File.unlink(destination) if exists?
    if config[:symbolic]
      File.symlink(render, destination)
    else
      File.link(render, destination)
    end
  end
  given_destination
end