module ForemanSalt

def self.register_rex_feature

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

def self.with_remote_execution?

check whether foreman_remote_execution to integrate is available in the system
def self.with_remote_execution?
  RemoteExecutionFeature
rescue StandardError
  false
end