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
COMPILE_SIMULTANEOUS_LIMIT =
5

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Configs

Returns a new instance of Configs.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/kuber_kit/configs.rb', line 32

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
  @compile_simultaneous_limit = COMPILE_SIMULTANEOUS_LIMIT
end

Instance Attribute Details

#artifact_clone_dir ⇒ Object

Returns the value of attribute artifact_clone_dir.



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

def artifact_clone_dir
  @artifact_clone_dir
end

#compile_simultaneous_limit ⇒ Object

Returns the value of attribute compile_simultaneous_limit.



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

def compile_simultaneous_limit
  @compile_simultaneous_limit
end

#configurations_dirname ⇒ Object

Returns the value of attribute configurations_dirname.



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

def configurations_dirname
  @configurations_dirname
end

#deploy_strategy ⇒ Object

Returns the value of attribute deploy_strategy.



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

def deploy_strategy
  @deploy_strategy
end

#docker_ignore_list ⇒ Object

Returns the value of attribute docker_ignore_list.



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

def docker_ignore_list
  @docker_ignore_list
end

#image_build_context_dir ⇒ Object

Returns the value of attribute image_build_context_dir.



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

def image_build_context_dir
  @image_build_context_dir
end

#image_compile_dir ⇒ Object

Returns the value of attribute image_compile_dir.



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

def image_compile_dir
  @image_compile_dir
end

#image_dockerfile_name ⇒ Object

Returns the value of attribute image_dockerfile_name.



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

def image_dockerfile_name
  @image_dockerfile_name
end

#image_tag ⇒ Object

Returns the value of attribute image_tag.



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

def image_tag
  @image_tag
end

#images_dirname ⇒ Object

Returns the value of attribute images_dirname.



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

def images_dirname
  @images_dirname
end

#infra_dirname ⇒ Object

Returns the value of attribute infra_dirname.



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

def infra_dirname
  @infra_dirname
end

#kuber_kit_dirname ⇒ Object

Returns the value of attribute kuber_kit_dirname.



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

def kuber_kit_dirname
  @kuber_kit_dirname
end

#service_config_dir ⇒ Object

Returns the value of attribute service_config_dir.



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

def service_config_dir
  @service_config_dir
end

#services_dirname ⇒ Object

Returns the value of attribute services_dirname.



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

def services_dirname
  @services_dirname
end