Sha256: 07da2f1b7ff99c51171339072dcfe7fa442df7cf2d23312e7b465c9075afa28c
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
class TemplateInvocationsController < ApplicationController include Foreman::Controller::AutoCompleteSearch def controller_permission 'job_invocations' end def show @template_invocation_task = ForemanTasks::Task.find(params[:id]) @template_invocation = @template_invocation_task.locks.where(:resource_type => 'TemplateInvocation').first.try(:resource) @host = @template_invocation_task.locks.where(:resource_type => 'Host::Managed').first.try(:resource) @auto_refresh = @template_invocation_task.pending? @since = params[:since].to_f if params[:since].present? @line_sets = @template_invocation_task.main_action.live_output @line_sets = @line_sets.drop_while { |o| o['timestamp'].to_f <= @since } if @since @line_counter = params[:line_counter].to_i end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_remote_execution-0.1.2 | app/controllers/template_invocations_controller.rb |