Module: ForemanHosts::HostsHelperExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/helpers/concerns/foreman_hosts/hosts_helper_extensions.rb

Instance Method Summary collapse

Instance Method Details

#get_fact_value(host, name) ⇒ Object



13
14
15
16
17
18
# File 'app/helpers/concerns/foreman_hosts/hosts_helper_extensions.rb', line 13

def get_fact_value(host,name)
  fact_value = FactValue.where(host_id: host.id, fact_name_id: name.id)
  if fact_value.first.present?
    return fact_value.first.value
  end
end

#instance_method_nameObject

create or overwrite instance methods…



10
11
# File 'app/helpers/concerns/foreman_hosts/hosts_helper_extensions.rb', line 10

def instance_method_name
end