Class: Serverkit::Resources::Symlink
- Defined in:
- lib/serverkit/resources/symlink.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes, #backend, #check_result, #recheck_result, #recipe
Instance Method Summary collapse
Methods inherited from Base
abstract_class?, #all_errors, attribute, #handlers, #id, #initialize, #notifiable?, #run_apply, #run_check, #successful?, #successful_on_check?, #successful_on_recheck?, #to_a
Constructor Details
This class inherits a constructor from Serverkit::Resources::Base
Instance Method Details
#apply ⇒ Object
Note:
Specinfra’s #link_to command does not support -f option for now
Note:
Override
11 12 13 |
# File 'lib/serverkit/resources/symlink.rb', line 11 def apply run_command("ln -fs #{destination} #{source}") end |
#check ⇒ Object
Note:
Override
16 17 18 |
# File 'lib/serverkit/resources/symlink.rb', line 16 def check check_command_from_identifier(:check_file_is_linked_to, source, destination) end |