--- !ruby/object:RI::MethodDescription aliases: - !ruby/object:RI::AliasName name: link block_params: comment: - !ruby/struct:SM::Flow::P body: "Options: force noop verbose" - !ruby/struct:SM::Flow::P body: ln(old, new, options = {}) - !ruby/struct:SM::Flow::P body: Creates a hard link new which points to old. If new already exists and it is a directory, creates a link +new/old+. If new already exists and it is not a directory, raises Errno::EEXIST. But if :force option is set, overwrite new. - !ruby/struct:SM::Flow::VERB body: " FileUtils.ln 'gcc', 'cc', :verbose => true\n FileUtils.ln '/usr/bin/emacs21', '/usr/bin/emacs'\n" - !ruby/struct:SM::Flow::P body: ln(list, destdir, options = {}) - !ruby/struct:SM::Flow::P body: Creates several hard links in a directory, with each one pointing to the item in list. If destdir is not a directory, raises Errno::ENOTDIR. - !ruby/struct:SM::Flow::VERB body: " include FileUtils\n cd '/sbin'\n FileUtils.ln %w(cp mv mkdir), '/bin' # Now /sbin/cp and /bin/cp are linked.\n" full_name: FileUtils#ln is_singleton: false name: ln params: (src, dest, options = {}) visibility: public