Class: KuberKit::Configs
Constant Summary collapse
- IMAGE_DOCKERFILE_NAME =
"Dockerfile".freeze
- IMAGE_BUILD_CONTEXT_DIR =
"build_context".freeze
- IMAGE_TAG =
'latest'.freeze
- IMAGE_COMPILE_DIR =
"/tmp/kuber_kit/image_builds"- DOCKER_IGNORE_LIST =
[ 'Dockerfile', '.DS_Store', '**/.DS_Store', '**/*.log', 'node_modules', '.vagrant', '.vscode', 'tmp', 'logs' ]
- KUBER_KIT_DIRNAME =
"kuber_kit".freeze
- IMAGES_DIRNAME =
"images".freeze
- SERVICES_DIRNAME =
"services".freeze
- INFRA_DIRNAME =
"infrastructure".freeze
- CONFIGURATIONS_DIRNAME =
"configurations".freeze
- ARTIFACT_CLONE_DIR =
"/tmp/kuber_kit/artifacts"- SERVICE_CONFIG_DIR =
"/tmp/kuber_kit/services"- DEPLOY_STRATEGY =
:kubernetes
Instance Attribute Summary collapse
-
#artifact_clone_dir ⇒ Object
Returns the value of attribute artifact_clone_dir.
-
#configurations_dirname ⇒ Object
Returns the value of attribute configurations_dirname.
-
#deploy_strategy ⇒ Object
Returns the value of attribute deploy_strategy.
-
#docker_ignore_list ⇒ Object
Returns the value of attribute docker_ignore_list.
-
#image_build_context_dir ⇒ Object
Returns the value of attribute image_build_context_dir.
-
#image_compile_dir ⇒ Object
Returns the value of attribute image_compile_dir.
-
#image_dockerfile_name ⇒ Object
Returns the value of attribute image_dockerfile_name.
-
#image_tag ⇒ Object
Returns the value of attribute image_tag.
-
#images_dirname ⇒ Object
Returns the value of attribute images_dirname.
-
#infra_dirname ⇒ Object
Returns the value of attribute infra_dirname.
-
#kuber_kit_dirname ⇒ Object
Returns the value of attribute kuber_kit_dirname.
-
#service_config_dir ⇒ Object
Returns the value of attribute service_config_dir.
-
#services_dirname ⇒ Object
Returns the value of attribute services_dirname.
Instance Method Summary collapse
-
#initialize ⇒ Configs
constructor
A new instance of Configs.
Constructor Details
#initialize ⇒ Configs
Returns a new instance of Configs.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/kuber_kit/configs.rb', line 31 def initialize @image_dockerfile_name = IMAGE_DOCKERFILE_NAME @image_build_context_dir = IMAGE_BUILD_CONTEXT_DIR @image_tag = IMAGE_TAG @image_compile_dir = IMAGE_COMPILE_DIR @docker_ignore_list = DOCKER_IGNORE_LIST @kuber_kit_dirname = KUBER_KIT_DIRNAME @images_dirname = IMAGES_DIRNAME @services_dirname = SERVICES_DIRNAME @infra_dirname = INFRA_DIRNAME @configurations_dirname = CONFIGURATIONS_DIRNAME @artifact_clone_dir = ARTIFACT_CLONE_DIR @service_config_dir = SERVICE_CONFIG_DIR @deploy_strategy = DEPLOY_STRATEGY end |
Instance Attribute Details
#artifact_clone_dir ⇒ Object
Returns the value of attribute artifact_clone_dir.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def artifact_clone_dir @artifact_clone_dir end |
#configurations_dirname ⇒ Object
Returns the value of attribute configurations_dirname.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def configurations_dirname @configurations_dirname end |
#deploy_strategy ⇒ Object
Returns the value of attribute deploy_strategy.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def deploy_strategy @deploy_strategy end |
#docker_ignore_list ⇒ Object
Returns the value of attribute docker_ignore_list.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def docker_ignore_list @docker_ignore_list end |
#image_build_context_dir ⇒ Object
Returns the value of attribute image_build_context_dir.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def image_build_context_dir @image_build_context_dir end |
#image_compile_dir ⇒ Object
Returns the value of attribute image_compile_dir.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def image_compile_dir @image_compile_dir end |
#image_dockerfile_name ⇒ Object
Returns the value of attribute image_dockerfile_name.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def image_dockerfile_name @image_dockerfile_name end |
#image_tag ⇒ Object
Returns the value of attribute image_tag.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def image_tag @image_tag end |
#images_dirname ⇒ Object
Returns the value of attribute images_dirname.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def images_dirname @images_dirname end |
#infra_dirname ⇒ Object
Returns the value of attribute infra_dirname.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def infra_dirname @infra_dirname end |
#kuber_kit_dirname ⇒ Object
Returns the value of attribute kuber_kit_dirname.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def kuber_kit_dirname @kuber_kit_dirname end |
#service_config_dir ⇒ Object
Returns the value of attribute service_config_dir.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def service_config_dir @service_config_dir end |
#services_dirname ⇒ Object
Returns the value of attribute services_dirname.
26 27 28 |
# File 'lib/kuber_kit/configs.rb', line 26 def services_dirname @services_dirname end |