Class: Chagall::Setup

Inherits:
Base
  • Object
show all
Defined in:
lib/chagall/setup.rb

Overview

Handles server provisioning and Docker environment setup for deployment

Defined Under Namespace

Classes: DockerSetupError

Constant Summary

Constants inherited from Base

Base::LOG_LEVELS

Instance Attribute Summary

Attributes inherited from Base

#logger, #ssh

Instance Method Summary collapse

Instance Method Details

#executeObject



12
13
14
15
16
17
18
19
# File 'lib/chagall/setup.rb', line 12

def execute
  install_docker unless docker_installed?
  setup_non_root_docker_deamon_access if unable_to_access_docker_deamon?
  create_project_folder unless project_folder_exists?
  create_env_files

  logger.info "Docker environment setup complete"
end