Class: Serverkit::Resources::Symlink

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/resources/symlink.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #backend, #recipe

Instance Method Summary collapse

Methods inherited from Base

#all_errors, attribute, #initialize, #to_a, #type

Constructor Details

This class inherits a constructor from Serverkit::Resources::Base

Instance Method Details

#applyObject



9
10
11
# File 'lib/serverkit/resources/symlink.rb', line 9

def apply
  run_command_from_identifier(:link_file_to, source, destination)
end

#checktrue, false

Returns:

  • (true, false)


14
15
16
# File 'lib/serverkit/resources/symlink.rb', line 14

def check
  check_command_from_identifier(:check_file_is_linked_to, source, destination)
end