Class: Capistrano::Nomad

Inherits:
Plugin
  • Object
show all
Defined in:
lib/capistrano/nomad.rb

Instance Method Summary collapse

Instance Method Details

#define_tasksObject



18
19
20
# File 'lib/capistrano/nomad.rb', line 18

def define_tasks
  eval_rakefile(File.expand_path("nomad/tasks/nomad.rake", __dir__))
end

#set_defaultsObject



11
12
13
14
15
16
# File 'lib/capistrano/nomad.rb', line 11

def set_defaults
  set_if_empty(:nomad_jobs_path, "nomad/jobs")
  set_if_empty(:nomad_var_files_path, "nomad/var_files")
  set_if_empty(:nomad_ui_url, "http://localhost:4646")
  set_if_empty(:nomad_docker_image_alias, ->(**) {})
end