Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
create_link(destination, *args)
public
Create a new file
relative to the destination root from the given source.
Parameters
destination |
the relative path to the destination root.
|
source<String|NilClass> |
the relative path to the source root.
|
config |
give :verbose => false to not log the status.
|
|
give :symbolic => false for hard link.
|
Examples
create_link "config/apache.conf", "/etc/apache.conf"
# File lib/bundler/vendor/thor/lib/thor/actions/create_link.rb, line 17
def create_link(destination, *args)
config = args.last.is_a?(Hash) ? args.pop : {}
source = args.first
action CreateLink.new(self, destination, source, config)
end