Class: Minke::Config::TaskRunSettings

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

Overview

TaskRunSettings encapsulates the configuration for the various pre and post sections for each task. You can use this section to load config into consul, wait for a health check to complete, copy files or execute other tasks defined in your Rakefile.

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


247
248
249
# File 'lib/minke/config/config.rb', line 247

def consul_loader
  @consul_loader
end

#copyObject

copy is an array of Copy instances which will be copied before the task continues. instance of Minke::Config::Copy

Optional


261
262
263
# File 'lib/minke/config/config.rb', line 261

def copy
  @copy
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


254
255
256
# File 'lib/minke/config/config.rb', line 254

def health_check
  @health_check
end

#tasksObject

tasks is an array of strings which point to a defined task in your Rakefile.

Optional


240
241
242
# File 'lib/minke/config/config.rb', line 240

def tasks
  @tasks
end