class LaunchdTools::Path
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/launchd_tools/path.rb, line 15 def initialize(path) @path = path end
Public Instance Methods
content()
click to toggle source
# File lib/launchd_tools/path.rb, line 24 def content PathContent.new(path).to_s end
expanded()
click to toggle source
# File lib/launchd_tools/path.rb, line 42 def expanded File.expand_path(path) end
parse()
click to toggle source
# File lib/launchd_tools/path.rb, line 28 def parse begin path_parser.parse rescue Errno::EACCES raise PermissionsError.new rescue raise UnparsablePlist.new end end
path_parser()
click to toggle source
# File lib/launchd_tools/path.rb, line 38 def path_parser PathParser.new(self) end
validate()
click to toggle source
# File lib/launchd_tools/path.rb, line 19 def validate raise PathMissingError unless File.exist?(path) self end