X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9d48110fd8045b9f6d4acd6965387149705bf3e3..7c3eb5137c7863947e6da221361ba98bfef227fd:/apps/workbench/app/views/application/_arvados_object.html.erb diff --git a/apps/workbench/app/views/application/_arvados_object.html.erb b/apps/workbench/app/views/application/_arvados_object.html.erb index 1e3a88190d..b4bf70dd23 100644 --- a/apps/workbench/app/views/application/_arvados_object.html.erb +++ b/apps/workbench/app/views/application/_arvados_object.html.erb @@ -1,15 +1,5 @@ <% content_for :arvados_object_table do %> -<%= form_for @object do |f| %> -
-<%= JSON.pretty_generate(@object.attributes.reject { |k,v| k == 'id' }) rescue nil %> --
-curl -X PUT \ - -H "Authorization: OAuth2 $arv_api_token" \ - --data-urlencode <%= @object.class.to_s.underscore %>@/dev/stdin \ - <%= Rails.configuration.arvados_v1_base.sub 'http://', 'https://' %>/<%= @object.class.to_s.pluralize.underscore %>/<%= @object.uuid %> \ - <<EOF -<%= JSON.pretty_generate({@object.attributes.keys[-3] => @object.attributes.values[-3]}) %> -EOF --
-ARVADOS_API_HOST=<%= Rails.configuration.arvados_v1_base.gsub /https?:\/\/|\/arvados\/v1/,'' %> -ARVADOS_API_TOKEN=xxxxxxxxxxxxxxxxxxxxx -arv --pretty <%= @object.class.to_s.underscore %> get \ - --uuid <%= @object.uuid %> - -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("'","'\''") %>' -
-import arvados - -x = arvados.api().<%= @object.class.to_s.pluralize.underscore %>().get(uuid='<%= @object.uuid %>').execute() --