Sha256: 075c4d277c09cb9e70b436412062002cb33398a8d86c8746e9f655c3ce106415
Contents?: true
Size: 695 Bytes
Versions: 5
Compression:
Stored size: 695 Bytes
Contents
require_relative '../common' module Kontena::Cli::Stacks::Registry class PushCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::Stacks::Common banner "Pushes (uploads) a stack to the stack registry" parameter "FILENAME", "Stack file path" requires_current_account_token def execute file = Kontena::Cli::Stacks::YAML::Reader.new(filename, skip_variables: true, replace_missing: "filler") name = "#{file.yaml['stack']}:#{file.yaml['version']}" spinner("Pushing #{pastel.cyan(name)} to stacks registry") do stacks_client.push(file.yaml['stack'], file.yaml['version'], file.raw_content) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems