Sha256: 5e0975c878a24c8a60f2d6bb3b0cdc28be53562025cd486cd7c3764391004d87
Contents?: true
Size: 523 Bytes
Versions: 32
Compression:
Stored size: 523 Bytes
Contents
require_relative 'common' module Kontena::Cli::Etcd class SetCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include Common parameter "KEY", "Etcd key" parameter "VALUE", "Etcd value" def execute require_api_url token = require_token validate_key data = {value: value} response = client(token).post("etcd/#{current_grid}/#{key}", data) if response['error'] abort response['error'] end end end end
Version data entries
32 entries across 32 versions & 1 rubygems