Sha256: cc70717d21e42f2c3cccc80c9e89bcc10cda63381ddaadaafe71f5e03f5a7eb4

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

<%= render partial: "projects/header", locals: {project: @project, subtitle: "Deploy to"} %>

<p>
  Branch: <b><%= @deploy.branch %></b>
</p>

<p>
  Deployer: <b><%= @deploy.deployer %></b>
</p>

<p>
  Completed: <b><%= @deploy.completed_at %></b>
</p>

<p>
  Duration: <b><%= @deploy.duration %></b> seconds
</p>

<div id="output">
  <%= ansi_to_html @deploy.output %>
</div>

<% unless @deploy.completed_at %>
<% content_for :javascripts do %>
<script type="text/javascript">
  $(function() {
    var interval = 900;
    var timer = window.setInterval(function() {
      $.getJSON(<%=raw project_deploy_path(project_id: @project.slug, id: @deploy.id).to_json %>, function(result) {
        if(result.completed) {
          window.clearInterval(timer);
        }
        $('#output').html(result.output);
      });
    }, interval);
  });
</script>
<% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 app/views/deploys/show.html.erb