Sha256: 62b704f4ecb57d23aad8cbd7cda035f81bc6ee5823d4bb23095b76850c040801
Contents?: true
Size: 728 Bytes
Versions: 6
Compression:
Stored size: 728 Bytes
Contents
require 'hako/scheduler' module Hako module Schedulers class Echo < Scheduler def initialize(app_id, _options) @app_id = app_id end def deploy(containers, env, app_port, force: false) puts "Deploy #{containers.fetch('app').image_tag} with app_port=#{app_port}, force=#{force}" puts 'Environment variables:' env.each do |key, val| puts " #{key}=#{val.inspect}" end end def oneshot(app, env, commands) puts "Run #{app.image_tag} with oneshot commands=#{commands.inspect}" puts 'Environment variables:' env.each do |key, val| puts " #{key}=#{val.inspect}" end 0 end end end end
Version data entries
6 entries across 6 versions & 1 rubygems