Gemspec sets GIT_DIR and GIT_WORK_TREE to ensure correct gem version
[arvados.git] / sdk / ruby / README
1
2 This directory contains contains the Ruby SDK.
3
4 ## Installation instructions
5
6 You can build the gem with the following command:
7
8   gem build arvados.gemspec
9
10 and install it like this:
11
12   gem install ./arvados-0.1.0.gem
13
14 ## Code example
15
16 #!/usr/bin/env ruby
17
18 ENV['ARVADOS_API_HOST'] = 'arvados.local'
19 ENV['ARVADOS_API_TOKEN'] = 'qwertyuiopasdfghjklzxcvbnm1234567890abcdefghijklmn'
20
21 require 'arvados'
22 arv = Arvados.new( { :suppress_ssl_warnings => false } )
23
24 pt_list = arv.pipeline_template.list(where:{})
25 puts pt_list[:items].first.inspect
26
27 pt = arv.pipeline_template.get(uuid:"9zb4a-p5p6p-fkkbrl98u3pk87m")
28 puts pt.inspect