Class: Contained::CLI::Init
Overview
Constant Summary collapse
- Arguments =
Data.define(:image, :stack)
- CONFIG_DEPLOY_COMPOSE_YML =
"services:\n app:\n image: example/app\n ports:\n - \"80:80\"\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost/up\"]\n interval: 30s\n timeout: 10s\n retries: 3\n"- CONFIG_DEPLOY_YML =
"stack: example\n\nregistry:\n server: hub.docker.com\n username:\n - DOCKER_REGISTRY_TOKEN\n password:\n - DOCKER_REGISTRY_TOKEN\n\nenvironments:\n production:\n hosts\n - 1.2.3.4\n - 5.6.7.8\n test:\n hosts\n - 4.3.2.1\n - 8.7.6.5\n"
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Contained::CLI::Base
Instance Method Details
#handle! ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/contained/cli/init.rb', line 46 def handle! arguments = arguments! path = arguments.fetch(:path) setup_config_dir(path:) setup_config_deploy_yml(path:) setup_config_deploy_compose_yml(path:) end |