<% content_for :body do %>
<% unless notice.blank? %> <% end %>

Machine Runner

<%= link_to 'Back to Machine Runners', machine_runners_path %>

<% invocation = @machine_runner.machine_runner_invocations.last %> <% if invocation.present? && invocation.dead_at.blank? && invocation.wind_down_at.blank? -%> <% end -%>
Attribute Value
ID <%= @machine_runner.id %>
Started At <%= @machine_runner.created_at %>
Server Name <% machine = ::Logical::Naf::Machine.new(::Naf::Machine.find_by_id(@machine_runner.machine.id)) %> <%= link_to machine.name, machine_path(@machine_runner.machine) %>
Runner Cwd <%= @machine_runner.runner_cwd %>
Wind Down Runner <%= link_to image_tag('terminate.png', class: 'action', title: "Wind Down Runner(id: #{@machine_runner.machine_runner_invocations.last.id})"), "#", { class: "wind_down" } %>

Machine Runner Invocations

<% @machine_runner.machine_runner_invocations.order('created_at DESC').each do |invocation| -%> <% end -%>
Id Started At Last Seen Pid Status
<%= link_to invocation.id, machine_runner_invocation_path(invocation) %> <%= invocation.created_at %> <%= invocation.updated_at %> <%= invocation.pid %> <%= invocation.status.gsub('-', ' ').split.map(&:capitalize).join(' ') %>

<% end %> <%= render partial: 'naf/shared/application' %>