Sha256: c5cf7bf2531b4488b12399ae0c85e151bc52fffd3880a0f5339ce44caa3a7301
Contents?: true
Size: 439 Bytes
Versions: 16
Compression:
Stored size: 439 Bytes
Contents
require_relative 'services_helper' module Kontena::Cli::Services class AddEnvCommand < Clamp::Command include Kontena::Cli::Common include ServicesHelper parameter "NAME", "Service name" parameter "ENV", "Environment variable" def execute require_api_url token = require_token data = {env: env} result = client(token).post("services/#{parse_service_id(name)}/envs", data) end end end
Version data entries
16 entries across 16 versions & 1 rubygems