Sha256: 4db85c3d00bc53871f71ebd20e00f04c6fae7bf06f7e1b86f941ac6383ad5b9c
Contents?: true
Size: 494 Bytes
Versions: 77
Compression:
Stored size: 494 Bytes
Contents
module Kontena module Callbacks class CreateInitialGridAfterDeploy < Kontena::Callback matches_commands 'master create' def after extend Kontena::Cli::Common return unless command.exit_code == 0 return unless config.current_master return unless config.current_master.name == command.result[:name] cmd = %w(grid create --silent test) Retriable.retriable do Kontena.run!(cmd) end end end end end
Version data entries
77 entries across 77 versions & 2 rubygems