Module: Dapp::Application::Path

Included in:
Dapp::Application
Defined in:
lib/dapp/application/path.rb

Overview

Path

Instance Method Summary collapse

Instance Method Details

#build_cache_path(*path) ⇒ Object



6
7
8
9
10
# File 'lib/dapp/application/path.rb', line 6

def build_cache_path(*path)
  make_path(@build_cache_path, *path).expand_path.tap do |p|
    FileUtils.mkdir_p p.parent
  end
end

#build_path(*path) ⇒ Object



16
17
18
# File 'lib/dapp/application/path.rb', line 16

def build_path(*path)
  make_path(@build_path, *path).expand_path.tap { |p| FileUtils.mkdir_p p.parent }
end

#container_build_path(*path) ⇒ Object



20
21
22
# File 'lib/dapp/application/path.rb', line 20

def container_build_path(*path)
  make_path('/.build', *path)
end

#home_path(*path) ⇒ Object



12
13
14
# File 'lib/dapp/application/path.rb', line 12

def home_path(*path)
  make_path(config._home_path, *path).expand_path
end