Created
April 3, 2014 07:45
-
-
Save korczis/9950000 to your computer and use it in GitHub Desktop.
Example of project listing with ruby gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'gooddata' | |
GoodData::logging_on | |
GoodData::logger.info 'Connecting ...' | |
c = GoodData.connect('svarovsky+gem_tester@gooddata.com', 'jindrisska') | |
GoodData::logger.info 'Connected ...' | |
list = GoodData::Command::Projects.list() | |
puts list.map { |p| [p.uri, p.title].join(',') } | |
GoodData::logger.info 'Disconnecting ...' | |
c.disconnect() | |
GoodData::logger.info 'Disconnected ...' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment