Sha256: 9d47304b3df0d54ae96119836a7cdc6eca924630cfb8968db91ca05153f89bc7
Contents?: true
Size: 842 Bytes
Versions: 4
Compression:
Stored size: 842 Bytes
Contents
require 'uri' module TreasureData module Command def server_status(op) op.cmd_parse puts Client.server_status end def server_endpoint(op) endpoint = op.cmd_parse if Config.cl_endpoint and endpoint != Config.endpoint raise ParameterConfigurationError, "You specified the API server endpoint in the command options as well (-e / --endpoint " + "option) but it does not match the value provided to the 'server:endpoint' command. " + "Please remove the option or ensure the endpoints URLs match each other." end Command.validate_api_endpoint(endpoint) Coomand.test_api_endpoint(endpoint) conf = nil begin conf = Config.read rescue ConfigError conf = Config.new end conf["account.endpoint"] = endpoint conf.save end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
td-0.11.6 | lib/td/command/server.rb |
td-0.11.5 | lib/td/command/server.rb |
td-0.11.4 | lib/td/command/server.rb |
td-0.11.3 | lib/td/command/server.rb |