Sha256: 4995fe6213bca9fc6d8585220ac61b9614fbeb6ce599333a97a714355d9b9b7a
Contents?: true
Size: 797 Bytes
Versions: 1
Compression:
Stored size: 797 Bytes
Contents
require 'pp' require File.join(File.dirname(__FILE__), "../shared") require File.join(File.dirname(__FILE__), "../../commands/api") GoodData::CLI.module_eval do desc 'Some basic API stuff directly from CLI' arg_name 'info|test|get|delete' command :api do |c| c.desc "Info about the API version etc" c.command :info do |info| info.action do |global_options, options, args| opts = options.merge(global_options) GoodData.connect(opts) pp GoodData::Command::Api.info end end c.desc "GET request on our API" c.command :get do |get| get.action do |global_options, options, args| opts = options.merge(global_options) GoodData.connect(opts) pp GoodData::Command::Api.get(args[0]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.0.pre11 | lib/gooddata/cli/commands/api_cmd.rb |