Class: Appril::CLI::Docker

Inherits:
Object
  • Object
show all
Includes:
Assertions, Helpers
Defined in:
lib/appril-cli/docker.rb,
lib/appril-cli/docker/build.rb,
lib/appril-cli/docker/update.rb,
lib/appril-cli/docker/install.rb

Direct Known Subclasses

Build, Install, Update

Defined Under Namespace

Classes: Build, Install, Update

Constant Summary collapse

CONFIG_FILE =
'./config.yml'.freeze
START_FILE =
'./start.sh'.freeze
PREPARE_BUILD_FILE =
'./prepare_build.sh'.freeze
BUILD_FILE =
'./build.sh'.freeze
CLEANUP_FILE =
'./cleanup.sh'.freeze

Instance Method Summary collapse

Methods included from Assertions

#assert_config_file_exists, #assert_directory_does_not_exists, #assert_directory_exists, #assert_empty_directory, #assert_installable_path, #assert_is_app_dir

Methods included from Helpers

#create_dirname_for, #expanded_path, #extract_namespace, #fatal_error!, #format_error, #make_executable

Instance Method Details

#paths(path) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/appril-cli/docker.rb', line 13

def paths path
  if path == WORKING_DIR
    [
      DOCKER_DIR.to_path + '/skel/.',
      File.expand_path(path / 'docker')
    ]
  else
    [
      DOCKER_DIR / 'skel',
      File.expand_path(path)
    ]
  end.map! {|path| Pathname.new(path)}
end