module ForemanSalt

Constants

VERSION

Public Class Methods

register_rex_feature() click to toggle source
# File lib/foreman_salt/engine.rb, line 72
def self.register_rex_feature
  options = {
    description: N_('Run Salt state.highstate'),
    host_action_button: true,
  }

  RemoteExecutionFeature.register(:foreman_salt_run_state_highstate, N_('Run Salt'), options)
end
with_remote_execution?() click to toggle source

check whether foreman_remote_execution to integrate is available in the system

# File lib/foreman_salt/engine.rb, line 66
def self.with_remote_execution?
  RemoteExecutionFeature
rescue StandardError
  false
end