Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
link_file(source, *args)
public
Links the file from the relative source to the relative destination. If the
destination is not given it’s assumed to be equal to the source.
Parameters
source |
the relative path to the source root.
|
destination |
the relative path to the destination root.
|
config |
give :verbose => false to not log the status.
|
Examples
link_file "README", "doc/README"
link_file "doc/README"
# File lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb, line 51
def link_file(source, *args)
config = args.last.is_a?(Hash) ? args.pop : {}
destination = args.first || source
source = File.expand_path(find_in_source_paths(source.to_s))
create_link destination, source, config
end