Class: AutomateIt::ShellManager::Symlink
- Inherits:
-
BaseLink
- Object
- Common
- Plugin::Base
- Plugin::Driver
- BaseDriver
- BaseLink
- AutomateIt::ShellManager::Symlink
- Defined in:
- lib/automateit/shell_manager/symlink.rb
Overview
ShellManager::Symlink
A ShellManager driver providing access to the symbolic link ln_s
command found on Unix-like systems.
Constant Summary
Constants inherited from Plugin::Driver
Plugin::Driver::BASE_DRIVER_NAME
Constants included from Constants
Constants::HELPERS_DIR, Constants::INSTALL_DIR, Constants::PERROR, Constants::PEXEC, Constants::PNOTE, Constants::WARNING_BOILERPLATE
Instance Attribute Summary
Attributes inherited from Plugin::Driver
Attributes inherited from Common
Instance Method Summary collapse
-
#ln_s(sources, target, opts = {}) ⇒ Object
See ShellManager#ln_s.
-
#ln_sf(sources, target, opts = {}) ⇒ Object
See ShellManager#ln_sf.
-
#provides_symlink? ⇒ Boolean
See ShellManager#provides_symlink?.
-
#suitability(method, *args) ⇒ Object
:nodoc:.
Methods inherited from BaseLink
Methods inherited from BaseDriver
Methods inherited from Plugin::Driver
abstract_driver, #available?, base_driver, base_driver?, depends_on, inherited, manager_token, #setup
Methods inherited from Plugin::Base
Methods inherited from Common
#initialize, #log, #nitpick, #noop, #noop=, #noop?, #preview, #preview=, #preview?, #preview_for, #setup, #superuser?, #writing, #writing=, #writing?
Constructor Details
This class inherits a constructor from AutomateIt::Common
Instance Method Details
#ln_s(sources, target, opts = {}) ⇒ Object
See ShellManager#ln_s
24 25 26 |
# File 'lib/automateit/shell_manager/symlink.rb', line 24 def ln_s(sources, target, opts={}) _ln(sources, target, {:symbolic => true}.merge(opts)) end |
#ln_sf(sources, target, opts = {}) ⇒ Object
See ShellManager#ln_sf
29 30 31 |
# File 'lib/automateit/shell_manager/symlink.rb', line 29 def ln_sf(sources, target, opts={}) _ln(sources, target, {:symbolic => true, :force => true}.merge(opts)) end |
#provides_symlink? ⇒ Boolean
See ShellManager#provides_symlink?
19 20 21 |
# File 'lib/automateit/shell_manager/symlink.rb', line 19 def provides_symlink? available? ? true : false end |
#suitability(method, *args) ⇒ Object
:nodoc:
13 14 15 16 |
# File 'lib/automateit/shell_manager/symlink.rb', line 13 def suitability(method, *args) # :nodoc: # Level must be higher than Portable return available? ? 2 : 0 end |