Class: Minke::Config::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/minke/config/task.rb

Overview

Task encapsulates the configuration for the various rake tasks like build, run, etc.

Instance Attribute Summary collapse

Instance Attribute Details

#consul_loaderObject

consul_loader will specify that the given config file is loaded into Consul. instance of Minke::Config::ConsulLoader

Optional


11
12
13
# File 'lib/minke/config/task.rb', line 11

def consul_loader
  @consul_loader
end

#dockerObject

docker config allows you to override the main docker configuration on a per task basis. instance of Minke::Config::TaskRunSettings

Optional


39
40
41
# File 'lib/minke/config/task.rb', line 39

def docker
  @docker
end

#health_checkObject

health_check is the string representation of a url to check before continuing with the rest of the task a successfull 200 response from the endpoint is required to contine.

Optional


18
19
20
# File 'lib/minke/config/task.rb', line 18

def health_check
  @health_check
end

#portsObject

ports contains an array of Minke::Config::ContainerAddress which holds the details for the address the public and private ports of any containers which will be started by this task.



45
46
47
# File 'lib/minke/config/task.rb', line 45

def ports
  @ports
end

#postObject

post tasks will run after the main task executes. instance of Minke::Config::TaskRunSettings

Optional


32
33
34
# File 'lib/minke/config/task.rb', line 32

def post
  @post
end

#preObject

pre tasks will run before the main task executes. instance of Minke::Config::TaskRunSettings

Optional


25
26
27
# File 'lib/minke/config/task.rb', line 25

def pre
  @pre
end

#terraformObject

terraform contains the an instance of Minke::Config::TerraformSettings which contains the details for the terraform provisioning section.



50
51
52
# File 'lib/minke/config/task.rb', line 50

def terraform
  @terraform
end