vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb
#  Attempt to do a normal file link, but fall back to a copy if the link
#  fails.
Attempt to do a normal file link, but fall back to a copy if the link
fails.
Attempt to do a normal file link but fall back to a copy if the link fails .
def safe_ln(*args, **options)
    if LN_SUPPORTED[0]
      begin
        return options.empty? ? ln(*args) : ln(*args, **options)
      rescue StandardError, NotImplementedError
        LN_SUPPORTED[0] = false
      end
    end
    options.empty? ? cp(*args) : cp(*args, **options)
  end
def safe_ln ( * args , ** options ) if LN_SUPPORTED [ 0 ] begin return options . empty? ? ln ( * args ) : ln ( * args , ** options ) rescue StandardError , NotImplementedError LN_SUPPORTED [ 0 ] = false end end options . empty? ? cp ( * args ) : cp ( * args , ** options ) end
Attempt to do a normal file link, but fall back to a copy if the link
fails.
Attempt to do a normal file link but fall back to a copy if the link fails .
args
options