Class: KuberKit::Configs

Inherits:
Object show all
Defined in:
lib/kuber_kit/configs.rb

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

Instance Method Summary collapse

Constructor Details

#initializeConfigs

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_dirObject

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_dirnameObject

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_strategyObject

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_listObject

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_dirObject

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_dirObject

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_nameObject

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_tagObject

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_dirnameObject

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_dirnameObject

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_dirnameObject

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_dirObject

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_dirnameObject

Returns the value of attribute services_dirname.



26
27
28
# File 'lib/kuber_kit/configs.rb', line 26

def services_dirname
  @services_dirname
end