Sha256: f4c9f409100b6a5fd6174891be7f345407a254cea8d6cdacd4bf79eb91dbf7dd

Contents?: true

Size: 585 Bytes

Versions: 31

Compression:

Stored size: 585 Bytes

Contents

# == ShellManager::Link
#
# A ShellManager driver providing access to the hard link +ln+ command found on
# Unix-like systems.
class AutomateIt::ShellManager::Link < AutomateIt::ShellManager::BaseLink
  depends_on :callbacks => [lambda{
      RUBY_PLATFORM !~ /mswin/i and File.respond_to?(:link)
    }]

  def suitability(method, *args) # :nodoc:
    # Level must be higher than Portable
    return available? ? 2 : 0
  end

  # See ShellManager#provides_link?
  def provides_link?
    available? ? true : false
  end

  # See ShellManager#ln
  def ln(*args)
    _ln(*args)
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
automate-it-0.9.2 lib/automateit/shell_manager/link.rb
automate-it-0.9.1 lib/automateit/shell_manager/link.rb
automate-it-0.9.0 lib/automateit/shell_manager/link.rb
automateit-0.71003 lib/automateit/shell_manager/link.rb
automateit-0.70923 lib/automateit/shell_manager/link.rb
automateit-0.70928 lib/automateit/shell_manager/link.rb
automateit-0.70930 lib/automateit/shell_manager/link.rb
automateit-0.71030 lib/automateit/shell_manager/link.rb
automateit-0.71031.1 lib/automateit/shell_manager/link.rb
automateit-0.71031.2 lib/automateit/shell_manager/link.rb
automateit-0.71017 lib/automateit/shell_manager/link.rb
automateit-0.71021 lib/automateit/shell_manager/link.rb
automateit-0.71012 lib/automateit/shell_manager/link.rb
automateit-0.71006 lib/automateit/shell_manager/link.rb
automateit-0.71103 lib/automateit/shell_manager/link.rb
automateit-0.71101.1 lib/automateit/shell_manager/link.rb
automateit-0.71031 lib/automateit/shell_manager/link.rb
automateit-0.71101 lib/automateit/shell_manager/link.rb
automateit-0.71101.2 lib/automateit/shell_manager/link.rb
automateit-0.71102 lib/automateit/shell_manager/link.rb