lib/travis/cli/api_command.rb in travis-1.2.2 vs lib/travis/cli/api_command.rb in travis-1.2.3

- old
+ new

@@ -8,9 +8,10 @@ abstract on('-e', '--api-endpoint URL', 'Travis API server to talk to') on('--pro', "short-cut for --api-endpoint '#{Travis::Client::PRO_URI}'") { |c,_| c.api_endpoint = Travis::Client::PRO_URI } on('--org', "short-cut for --api-endpoint '#{Travis::Client::ORG_URI}'") { |c,_| c.api_endpoint = Travis::Client::ORG_URI } + on('--staging', 'talks to staging system') { |c,_| c.api_endpoint = c.api_endpoint.gsub(/api/, 'api-staging') } on('-t', '--token [ACCESS_TOKEN]', 'access token to use') { |c, t| c.access_token = t } on('--debug', 'show API requests') do |c,_| c.session.instrument do |info, request| start = Time.now