Sha256: 360ac1000fc0c2d84d921e99a3142f1f29a6cfc82ad512e8e27c115084469da0

Contents?: true

Size: 586 Bytes

Versions: 58

Compression:

Stored size: 586 Bytes

Contents

module Presenters
  class OverridenAnsibleVariablePresenter
    attr_reader :ansible_variable

    delegate :id, :key, :description, :override?,
             :parameter_type, :hidden_value?, :omit, :required,
             :validator_type, :validator_rule, :default_value,
             :ansible_role, :current_value, :to => :ansible_variable

    def initialize(ansible_variable, override_resolver)
      @ansible_variable = ansible_variable
      @override_resolver = override_resolver
    end

    def current_value
      @override_resolver.resolve @ansible_variable
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-15.0.1 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-15.0.0 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-14.2.2 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-14.2.1 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-13.0.7 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-14.2.0 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-14.1.1 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-14.1.0 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-13.0.5 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-14.0.0 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-13.0.4 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-13.0.3 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-13.0.2 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-13.0.1 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-13.0.0 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-12.0.7 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-10.4.4 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-7.1.8 app/graphql/presenters/overriden_ansible_variable_presenter.rb
foreman_ansible-12.0.6 app/graphql/presenters/overriden_ansible_variable_presenter.rb