Method: Specinfra::Command::Solaris::V10::File.check_is_linked_to
- Defined in:
- lib/specinfra/command/solaris/v10/file.rb
permalink .check_is_linked_to(link, target) ⇒ Object
[View source]
24 25 26 27 |
# File 'lib/specinfra/command/solaris/v10/file.rb', line 24 def check_is_linked_to(link, target) regexp = "^#{target}$" "perl -e 'printf \"%s\", readlink(\"#{escape(link)}\")' | grep -- #{escape(regexp)}" end |