Sha256: f858105bd1e563a972441c70bbc8947f138b8a01d315dd9b78e5fd8e960002c0

Contents?: true

Size: 577 Bytes

Versions: 7

Compression:

Stored size: 577 Bytes

Contents

object @salt_variable

attribute :parameter
attributes :id, :variable, :salt_state, :salt_state_id, :description, :override,
           :variable_type, :hidden_value?, :validator_type,
           :validator_rule, :merge_overrides, :merge_default,
           :avoid_duplicates, :override_value_order, :created_at, :updated_at,
           :default_value

node do |salt_variable|
  {
    :override_values => partial(
      'api/v2/override_values/index',
      :object => salt_variable.lookup_values
    )
  }
end

node :override_values_count do |lk|
  lk.lookup_values.count
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_salt-14.0.0 app/views/foreman_salt/api/v2/salt_variables/show.json.rabl
foreman_salt-13.2.4 app/views/foreman_salt/api/v2/salt_variables/show.json.rabl
foreman_salt-13.2.3 app/views/foreman_salt/api/v2/salt_variables/show.json.rabl
foreman_salt-13.2.2 app/views/foreman_salt/api/v2/salt_variables/show.json.rabl
foreman_salt-13.2.1 app/views/foreman_salt/api/v2/salt_variables/show.json.rabl
foreman_salt-13.2.0 app/views/foreman_salt/api/v2/salt_variables/show.json.rabl
foreman_salt-13.1.0 app/views/foreman_salt/api/v2/salt_variables/show.json.rabl