Merge branch 'master' into 3055-advanced-tab-explanations
authorradhika <radhika@curoverse.com>
Thu, 3 Jul 2014 20:45:08 +0000 (16:45 -0400)
committerradhika <radhika@curoverse.com>
Thu, 3 Jul 2014 20:45:08 +0000 (16:45 -0400)
apps/workbench/app/views/application/_show_advanced_cli_example.html.erb
apps/workbench/app/views/application/_show_advanced_curl_example.html.erb
apps/workbench/app/views/application/_show_advanced_python_example.html.erb

index 45168762fefecf6059cfdd33b8b798cbe27a82c2..990631e27a3691f1679a8da3afdd81d637cd5cdc 100644 (file)
@@ -1,7 +1,11 @@
+An example arv command to get a <%= object.class.to_s.underscore %> using its uuid:
 <pre>
 arv --pretty <%= object.class.to_s.underscore %> get \
  --uuid <%= object.uuid %>
+</pre>
 
+An example arv command to update the "<%= object.attributes.keys[-3] %>" attribute for the current <%= object.class.to_s.underscore %>:
+<pre>
 arv <%= object.class.to_s.underscore %> update \
  --uuid <%= object.uuid %> \
  --<%= object.class.to_s.underscore.gsub '_', '-' %> '<%= JSON.generate({object.attributes.keys[-3] => object.attributes.values[-3]}).gsub("'","'\''") %>'
index 0454c13c30d2b496eae2f1dcdfca19d0ee87466b..d6b983470d7b615d97b6d269e08daa6d704ff280 100644 (file)
@@ -1,3 +1,4 @@
+An example curl command to update the "<%= object.attributes.keys[-3] %>" attribute for the current <%= object.class.to_s.underscore %>:
 <pre>
 curl -X PUT \
  -H "Authorization: OAuth2 $ARVADOS_API_TOKEN" \
index 3ceae4f757cd6f59a30c459d127f08884d3ebabf..f7cb7a10d9617cdbd88f2b0ddd30f9f6c0259b8f 100644 (file)
@@ -1,3 +1,4 @@
+An example python command to get a <%= object.class.to_s.underscore %> using its uuid:
 <pre>
 import arvados