Module: ForemanChef::Concerns::HostActionSubject

Defined in:
app/models/foreman_chef/concerns/host_action_subject.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



4
5
6
7
# File 'app/models/foreman_chef/concerns/host_action_subject.rb', line 4

def self.prepended(base)
  base.send :prepend, ForemanTasks::Concerns::ActionSubject
  base.send :prepend, ForemanTasks::Concerns::ActionTriggering
end

Instance Method Details

#action_input_keyObject



19
20
21
# File 'app/models/foreman_chef/concerns/host_action_subject.rb', line 19

def action_input_key
  "host"
end

#destroy_actionObject



14
15
16
17
# File 'app/models/foreman_chef/concerns/host_action_subject.rb', line 14

def destroy_action
  sync_action!
  ::Actions::ForemanChef::Host::Destroy
end

#update_actionObject



9
10
11
12
# File 'app/models/foreman_chef/concerns/host_action_subject.rb', line 9

def update_action
  sync_action!
  ::Actions::ForemanChef::Host::Update
end