Sha256: 7967657b08cf44615cab866d05bdd77262ed6d7de76573cd0f3daca3cc2cb894
Contents?: true
Size: 507 Bytes
Versions: 28
Compression:
Stored size: 507 Bytes
Contents
require_relative '../services_helper' module Kontena::Cli::Services::Envs class AddCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include Kontena::Cli::Services::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
28 entries across 28 versions & 1 rubygems