class Minke::Config::Config
Config
represents project level configuration for minke builds
Attributes
the name of the application
- Required
Settings for the build image phase instance of Minke::Config::Task
- Optional
-
if not provided the build commands will not be executed
Settings for the cuccumber functional test phase instance of Minke::Config::Task
- Optional
-
if not provided the cucumber commands will not be executed
Docker
settings for tasks, any items defined in this section will override the defaults provided inside the generator. instance of Minke::Config::DockerSettings
- Required
Docker
registry settings instance of Minke::Config::DockerRegistrySettings
- Optional
Settings for the fetch packages phase instance of Minke::Config::Task
- Optional
-
if not provided the fetch commands will not be executed
the name of the generator to use
- Required
the namespace for the application
- Required
Settings for the build provision phase instance of Minke::Config::Task
- Optional
-
if not provided the provision commands will not be executed
Settings for the run application phase instance of Minke::Config::Task
- Optional
-
if not provided the run commands will not be executed
Settings for the build shell phase instance of Minke::Config::Task
- Optional
-
if not provided the shell commands will not be executed
Settings for the run application phase instance of Minke::Config::Task
- Optional
-
if not provided the test commands will not be executed
Public Instance Methods
Returns the docker_compose file for the given section,
if the section overrides application_compose_file then this is returned
otherwise the global file is returned Parameters - :fetch - :build - :run - :test - :cucumber
# File lib/minke/config/config.rb, line 139 def build_docker_file_for section file = docker.build_docker_file unless docker.build_docker_file == nil if self.send(section) != nil && self.send(section).docker != nil && self.send(section).docker.build_docker_file != nil file = self.send(section).docker.build_docker_file end return file end
Returns the build_image file for the given section,
if the section overrides build_image then this is returned
otherwise the global build_image is returned Parameters - :fetch - :build - :run - :test - :cucumber
# File lib/minke/config/config.rb, line 118 def build_image_for section file = docker.build_image unless docker.build_image == nil if self.send(section) != nil && self.send(section).docker != nil && self.send(section).docker.build_image != nil file = self.send(section).docker.build_image end return file end
Returns the docker_compose file for the given section,
if the section overrides application_compose_file then this is returned
otherwise the global file is returned Parameters - :fetch - :build - :run - :test - :cucumber
# File lib/minke/config/config.rb, line 97 def compose_file_for section file = docker.application_compose_file unless docker.application_compose_file == nil if self.send(section) != nil && self.send(section).docker != nil && self.send(section).docker.application_compose_file != nil file = self.send(section).docker.application_compose_file end return file end