Sha256: a95dfe8ae07ae41d0351dd60eeec2c2826f9ffd9c2655dc32e8729a521471616
Contents?: true
Size: 842 Bytes
Versions: 5
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) Command.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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
td-0.11.9 | lib/td/command/server.rb |
td-0.11.8.2 | lib/td/command/server.rb |
td-0.11.8.1 | lib/td/command/server.rb |
td-0.11.8 | lib/td/command/server.rb |
td-0.11.7 | lib/td/command/server.rb |