Sha256: b40491d4247efa2e5b3b5827c622faf905e333f00dc4bae8ae467d41c0e5bd06
Contents?: true
Size: 453 Bytes
Versions: 234
Compression:
Stored size: 453 Bytes
Contents
require 'travis/cli' require 'pp' module Travis module CLI class Raw < ApiCommand description "makes an (authenticated) API call and prints out the result" skip :authenticate on('--[no-]json', 'display as json') def run(resource) reply = session.get_raw(resource) json? ? say(reply.to_json) : pp(reply) rescue Travis::Client::NotFound error "resource not found" end end end end
Version data entries
234 entries across 234 versions & 3 rubygems