Sha256: dbd3941c941b4bd4ce2426746e9f0c151cf6ec811f7b23520e0b2973f2bf2394
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
<% begin %> <% output = Bash.evaluate_string script %> <% output.each do |key, line| %> <% case key when :stdin %> <p class="text-info"><%= h line %></p> <% when :stdout %> <p><%= h line %></p> <% when :stderr %> <p class="text-danger"><%= h line %></p> <% end %> <% end %> <% rescue => error %> <%= erb :error, locals: { error: error }, layout: false %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailog-0.7.0 | app/views/script/bash.erb |
tailog-0.6.9 | app/views/script/bash.erb |