Sha256: 944029dd33ab497160321ea95e64d81262c858a751bfb4b22c760d2be9d5c0d8
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
require 'travis/cli' module Travis module CLI class Endpoint < ApiCommand description "displays or changes the API endpoint" skip :authenticate on '--drop-default', 'delete stored default endpoint' on '--set-default', 'store endpoint as global default' def run if drop_default? and was = config['default_endpoint'] config.delete('default_endpoint') say was, "default API endpoint dropped (was %s)" else config['default_endpoint'] = api_endpoint if set_default? say api_endpoint, "API endpoint: %s#{" (stored as default)" if set_default?}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-1.5.3 | lib/travis/cli/endpoint.rb |