class Minke::Config::Config

Config represents project level configuration for minke builds

Attributes

application_name[RW]

the name of the application

Required
build[RW]

Settings for the build image phase instance of Minke::Config::Task

Optional

if not provided the build commands will not be executed

cucumber[RW]

Settings for the cuccumber functional test phase instance of Minke::Config::Task

Optional

if not provided the cucumber commands will not be executed

docker[RW]

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[RW]

Docker registry settings instance of Minke::Config::DockerRegistrySettings

Optional
fetch[RW]

Settings for the fetch packages phase instance of Minke::Config::Task

Optional

if not provided the fetch commands will not be executed

generator_name[RW]

the name of the generator to use

Required
namespace[RW]

the namespace for the application

Required
provision[RW]

Settings for the build provision phase instance of Minke::Config::Task

Optional

if not provided the provision commands will not be executed

run[RW]

Settings for the run application phase instance of Minke::Config::Task

Optional

if not provided the run commands will not be executed

shell[RW]

Settings for the build shell phase instance of Minke::Config::Task

Optional

if not provided the shell commands will not be executed

test[RW]

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

build_docker_file_for(section) click to toggle source
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
build_image_for(section) click to toggle source
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
compose_file_for(section) click to toggle source
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