Class: ForemanTasks::RecurringLogicsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Foreman::Controller::AutoCompleteSearch
Defined in:
app/controllers/foreman_tasks/recurring_logics_controller.rb

Instance Method Summary collapse

Instance Method Details

#cancelObject



22
23
24
25
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 22

def cancel
  @recurring_logic.cancel
  redirect_to :action => :index
end

#clear_cancelledObject



27
28
29
30
31
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 27

def clear_cancelled
  scope = resource_base.search_for('state=cancelled')
  scope.destroy_all
  redirect_to :action => :index
end

#controller_nameObject



33
34
35
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 33

def controller_name
  'foreman_tasks_recurring_logics'
end

#disableObject



18
19
20
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 18

def disable
  change_enabled(false)
end

#enableObject



14
15
16
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 14

def enable
  change_enabled(true)
end

#indexObject



7
8
9
10
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 7

def index
  @errors = params[:errors]
  @recurring_logics = filter(resource_base)
end

#resource_classObject



37
38
39
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 37

def resource_class
  ::ForemanTasks::RecurringLogic
end

#showObject



12
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 12

def show; end