[ARVADOS] updated: 9a07feb6e747e88e4bd3f43e2c2b77954b9e6a19
git at public.curoverse.com
git at public.curoverse.com
Wed Jul 30 15:54:51 EDT 2014
Summary of changes:
.../app/views/users/_manage_account.html.erb | 5 ++--
.../app/views/users/_manage_current_token.html.erb | 14 +++++-----
.../app/views/users/_manage_repositories.html.erb | 2 +-
.../users/_manage_setting_up_ssh_access.html.erb | 28 --------------------
.../views/users/_manage_virtual_machines.html.erb | 30 ++++++++++++----------
5 files changed, 27 insertions(+), 52 deletions(-)
delete mode 100644 apps/workbench/app/views/users/_manage_setting_up_ssh_access.html.erb
via 9a07feb6e747e88e4bd3f43e2c2b77954b9e6a19 (commit)
from fc68ff843ed4e665ec67c126c43c9edee5de8d3f (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 9a07feb6e747e88e4bd3f43e2c2b77954b9e6a19
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Wed Jul 30 15:54:47 2014 -0400
Combined contents of "Setting up SSH" into "Virtual Machines" panel. Added
"Command line" column to "virtual machines" table which user can cut and paste
the ssh command line.
diff --git a/apps/workbench/app/views/users/_manage_account.html.erb b/apps/workbench/app/views/users/_manage_account.html.erb
index 362abed..309d982 100644
--- a/apps/workbench/app/views/users/_manage_account.html.erb
+++ b/apps/workbench/app/views/users/_manage_account.html.erb
@@ -1,8 +1,7 @@
<div class="col-sm-6">
<div class="panel-group" id="arv-adv-accordion">
<% ['Virtual Machines',
- 'Repositories',
- 'Current Token'].each do |section| %>
+ 'Repositories'].each do |section| %>
<% section_id = section.gsub(" ","_").downcase %>
<div class="panel panel-default">
<div class="panel-heading">
@@ -24,7 +23,7 @@
<div class="col-sm-6">
<div class="panel-group" id="arv-adv-accordion">
<% ['SSH Keys',
- 'Setting up SSH access'].each do |section| %>
+ 'Current Token'].each do |section| %>
<% section_id = section.gsub(" ","_").downcase %>
<div class="panel panel-default">
<div class="panel-heading">
diff --git a/apps/workbench/app/views/users/_manage_current_token.html.erb b/apps/workbench/app/views/users/_manage_current_token.html.erb
index 33633ed..2461410 100644
--- a/apps/workbench/app/views/users/_manage_current_token.html.erb
+++ b/apps/workbench/app/views/users/_manage_current_token.html.erb
@@ -1,9 +1,9 @@
-### Pasting the following lines at a shell prompt will allow Arvados SDKs</br>
-### to authenticate to your account, <%= current_user.email %></br>
-export ARVADOS_API_TOKEN=<%= Thread.current[:arvados_api_token] %></br>
-export ARVADOS_API_TOKEN ARVADOS_API_HOST=<%= current_api_host %></br>
+<p>Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your account, <b><%= current_user.email %></b></p>
+
+<pre>export ARVADOS_API_TOKEN=<%= Thread.current[:arvados_api_token] %>
+export ARVADOS_API_HOST=<%= current_api_host %>
<% if Rails.configuration.arvados_insecure_https %>
-export ARVADOS_API_HOST_INSECURE=true</br>
+export ARVADOS_API_HOST_INSECURE=true
<% else %>
-unset ARVADOS_API_HOST_INSECURE</br>
-<% end %>
+unset ARVADOS_API_HOST_INSECURE
+<% end %></pre>
diff --git a/apps/workbench/app/views/users/_manage_repositories.html.erb b/apps/workbench/app/views/users/_manage_repositories.html.erb
index 7ff11bd..33746be 100644
--- a/apps/workbench/app/views/users/_manage_repositories.html.erb
+++ b/apps/workbench/app/views/users/_manage_repositories.html.erb
@@ -27,7 +27,7 @@
<%= repo[:push_url] != nil %>
</td>
<td style="word-break:break-all;">
- <%= repo[:fetch_url] %>
+ <code><%= repo[:fetch_url] %></code>
</td>
</tr>
<% end %>
diff --git a/apps/workbench/app/views/users/_manage_setting_up_ssh_access.html.erb b/apps/workbench/app/views/users/_manage_setting_up_ssh_access.html.erb
deleted file mode 100644
index 903fc7f..0000000
--- a/apps/workbench/app/views/users/_manage_setting_up_ssh_access.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-<div>
-<p>
-Sample <code>~/.ssh/config</code>:
-</p>
-
-<pre>
-Host *.arvados
- ProxyCommand ssh -p2222 turnout at switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
-<% if @my_vm_logins.andand.first %>
- User <%= @my_vm_logins[@my_vm_logins.andand.keys.first].andand.first %>
-<% end %>
-</pre>
-
-<p>
-Sample login command:
-</p>
-
-<pre>
-ssh <%= @my_virtual_machines.first.andand.hostname.andand.sub('.'+current_api_host,'') or 'vm-hostname' %>.arvados
-</pre>
-
-<p>
- See also:
- <%= link_to raw('Arvados Docs → User Guide → SSH access'),
- "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
- target: "_blank"%>.
-</p>
-</div>
diff --git a/apps/workbench/app/views/users/_manage_virtual_machines.html.erb b/apps/workbench/app/views/users/_manage_virtual_machines.html.erb
index a3191c2..8215f1f 100644
--- a/apps/workbench/app/views/users/_manage_virtual_machines.html.erb
+++ b/apps/workbench/app/views/users/_manage_virtual_machines.html.erb
@@ -1,18 +1,21 @@
<div>
<p>
- For more information see <%= link_to raw('Setting up SSH access'),
- "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", target: "_blank"%>.
+ For more information see <%= link_to raw('Arvados Docs → User Guide → SSH access'),
+ "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
+ target: "_blank"%>. A sample <i>~/.ssh/config</i> entry is provided below.
</p>
<table class="table virtual-machines-table">
<colgroup>
- <col style="width: 50%" />
+ <col style="width: 25%" />
+ <col style="width: 25%" />
<col style="width: 50%" />
</colgroup>
<thead>
<tr>
<th> Host name </th>
<th> Login name </th>
+ <th> Command line </th>
</tr>
</thead>
<tbody>
@@ -24,20 +27,21 @@
<td style="word-break:break-all;">
<%= @my_vm_logins[vm[:uuid]].andand.compact.andand.join(", ") %>
</td>
+ <td style="word-break:break-all;">
+ <% if @my_vm_logins[vm[:uuid]] %>
+ <% @my_vm_logins[vm[:uuid]].each do |login| %>
+ <code>ssh <%= login %>@<%= vm[:hostname] %>.arvados</code>
+ <% end %>
+ <% end %>
+ </td>
</tr>
<% end %>
</tbody>
</table>
- <%
- login_name = @my_vm_logins[@my_vm_logins.andand.keys.first].andand.first
- api_host = @my_virtual_machines.first.andand.hostname.andand.sub('.'+current_api_host,'')
- if (login_name && api_host)
- %>
- <p>
- To log in to <b><%=api_host%></b> using the login name <b><%=login_name%></b>, use <b><%=login_name%>@<%=api_host%>.arvados</b>.
- Please see the <b>Setting up SSH access</b> section to the right for more detail.
- </p>
- <% end %>
+<p><i>~/.ssh/config:</i></p>
+<pre>Host *.arvados
+ ProxyCommand ssh -p2222 turnout at switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
+</pre>
</div>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list