class Deadpull::Values::LocalLocation
Public Instance Methods
concretize()
click to toggle source
# File lib/deadpull/values/local_location.rb, line 12 def concretize create_local_directory unless local_directory_exists? local_path end
Private Instance Methods
create_local_directory()
click to toggle source
# File lib/deadpull/values/local_location.rb, line 31 def create_local_directory FileUtils.mkdir_p(local_dirname) end
local_directory_exists?()
click to toggle source
# File lib/deadpull/values/local_location.rb, line 27 def local_directory_exists? Dir.exist?(local_dirname) end
local_dirname()
click to toggle source
# File lib/deadpull/values/local_location.rb, line 23 def local_dirname @local_dirname = File.dirname(local_path) end
local_path()
click to toggle source
# File lib/deadpull/values/local_location.rb, line 19 def local_path @local_path ||= path.join(key.sub(%r{\A#{prefix}?\/}, '')) end