Sha256: 886f7229da6cee781230c4ec0e287264b937018211f7f5b5128ad499e8def585
Contents?: true
Size: 584 Bytes
Versions: 34
Compression:
Stored size: 584 Bytes
Contents
require_relative '../services_helper' module Kontena::Cli::Services::Envs class AddCommand < Kontena::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} spinner "Adding env variable to #{pastel.cyan(name)} service " do client(token).post("services/#{parse_service_id(name)}/envs", data) end end end end
Version data entries
34 entries across 34 versions & 2 rubygems