module Thor::Actions
def create_link(destination, *args, &block)
create_link "config/apache.conf", "/etc/apache.conf"
==== Examples
:: give :symbolic => false for hard link.
config
source
destination
==== Parameters
Create a new file relative to the destination root from the given source.
def create_link(destination, *args, &block) config = args.last.is_a?(Hash) ? args.pop : {} source = args.first action CreateLink.new(self, destination, source, config) end