class Kontena::Cli::Etcd::MkdirCommand

Public Instance Methods

execute() click to toggle source
# File lib/kontena/cli/etcd/mkdir_command.rb, line 11
def execute
  require_api_url
  token = require_token
  validate_key

  data = {}
  response = client(token).post("etcd/#{current_grid}/#{key}", data)
  if response['error']
    exit_with_error response['error']
  end
end