Sha256: 401df9fd481800d3f83cf1b50810fae24e6aba6eb45bedb90630b9e2ac0534a2

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

# Setup controlmaster SSH session before generating one-time-key
before 'otk:generate', 'controlmaster:setup'

DOES_NOT_REQUIRE_OTK_LIST = [
  'bundler:map_bins',
  'controlmaster:setup',
  'controlmaster:start',
  'default',
  'deploy:generate_otk',
  'install',
  'load:defaults',
  'otk:generate',
  *Rake.application.stages
].freeze

Rake.application.tasks.each do |task|
  next if DOES_NOT_REQUIRE_OTK_LIST.include?(task.name)

  before task, 'deploy:generate_otk'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dlss-capistrano-5.3.0 lib/dlss/capistrano/tasks/setup/setup.rake
dlss-capistrano-5.2.0 lib/dlss/capistrano/tasks/setup/setup.rake