[ARVADOS] updated: bf688c8ccafa66caaa7694f770e69635f5f89249
git at public.curoverse.com
git at public.curoverse.com
Wed Jul 2 12:03:34 EDT 2014
Summary of changes:
.../app/views/application/_show_advanced_cli_example.html.erb | 4 ++++
.../app/views/application/_show_advanced_curl_example.html.erb | 1 +
.../app/views/application/_show_advanced_python_example.html.erb | 1 +
3 files changed, 6 insertions(+)
via bf688c8ccafa66caaa7694f770e69635f5f89249 (commit)
from 394a2035ac1a478e6ebb3fb52a2db4217968e5f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit bf688c8ccafa66caaa7694f770e69635f5f89249
Author: radhika <radhika at curoverse.com>
Date: Wed Jul 2 12:01:39 2014 -0400
3055: add explanation to the example commands in the advanced tab.
diff --git a/apps/workbench/app/views/application/_show_advanced_cli_example.html.erb b/apps/workbench/app/views/application/_show_advanced_cli_example.html.erb
index 4516876..990631e 100644
--- a/apps/workbench/app/views/application/_show_advanced_cli_example.html.erb
+++ b/apps/workbench/app/views/application/_show_advanced_cli_example.html.erb
@@ -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("'","'\''") %>'
diff --git a/apps/workbench/app/views/application/_show_advanced_curl_example.html.erb b/apps/workbench/app/views/application/_show_advanced_curl_example.html.erb
index 0454c13..d6b9834 100644
--- a/apps/workbench/app/views/application/_show_advanced_curl_example.html.erb
+++ b/apps/workbench/app/views/application/_show_advanced_curl_example.html.erb
@@ -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" \
diff --git a/apps/workbench/app/views/application/_show_advanced_python_example.html.erb b/apps/workbench/app/views/application/_show_advanced_python_example.html.erb
index 3ceae4f..f7cb7a1 100644
--- a/apps/workbench/app/views/application/_show_advanced_python_example.html.erb
+++ b/apps/workbench/app/views/application/_show_advanced_python_example.html.erb
@@ -1,3 +1,4 @@
+An example python command to get a <%= object.class.to_s.underscore %> using its uuid:
<pre>
import arvados
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list