Method: Specinfra::Command::Base::File.link_to

Defined in:
lib/specinfra/command/base/file.rb

165
166
167
168
169
# File 'lib/specinfra/command/base/file.rb', line 165

def link_to(link, target, options = {})
  option = '-s'
  option << 'f' if options[:force]
  "ln #{option} #{escape(target)} #{escape(link)}"
end