module Dapp::Dimg::Dimg::Path

Public Instance Methods

build_dir(*path)
Alias for: build_path
build_path(*path) click to toggle source
# File lib/dapp/dimg/dimg/path.rb, line 18
def build_path(*path)
  dapp.build_path(*path).expand_path.tap { |p| p.parent.mkpath }
end
Also aliased as: build_dir
container_dapp_path(*path) click to toggle source
# File lib/dapp/dimg/dimg/path.rb, line 22
def container_dapp_path(*path)
  make_path('/.dapp', *path)
end
container_tmp_path(*path) click to toggle source
# File lib/dapp/dimg/dimg/path.rb, line 26
def container_tmp_path(*path)
  container_dapp_path('tmp', *path)
end
home_path(*path) click to toggle source
# File lib/dapp/dimg/dimg/path.rb, line 5
def home_path(*path)
  dapp.path(*path).expand_path
end
tmp_dir(*path)
Alias for: tmp_path
tmp_dir_exists?() click to toggle source
# File lib/dapp/dimg/dimg/path.rb, line 9
def tmp_dir_exists?
  @tmp_path != nil
end
tmp_path(*path) click to toggle source
# File lib/dapp/dimg/dimg/path.rb, line 13
def tmp_path(*path)
  @tmp_path ||= Dir.mktmpdir('dapp-', dapp.tmp_base_dir)
  make_path(@tmp_path, *path).expand_path.tap { |p| p.parent.mkpath }
end
Also aliased as: tmp_dir