Sha256: 48f3b5b11fe2e8a2fe3cdb6c0152561599f24c4ed109a676373592af6a1bcb1a

Contents?: true

Size: 680 Bytes

Versions: 81

Compression:

Stored size: 680 Bytes

Contents

module ForemanRemoteExecution
  class ProviderInput
    attr_reader :name, :label, :description, :options, :value_type, :required
    attr_accessor :value

    def initialize(name:, label:, value:, description: nil, options: nil, value_type: nil, required: false, hidden: false)
      @name = name
      @label = label
      @value = value
      @description = description
      @options = options
      @value_type = value_type
      @required = required
      @hidden = hidden
    end

    def template_input
      self
    end

    def hidden_value?
      @hidden
    end

    def options_array
      options.blank? ? [] : options.split(/\r?\n/).map(&:strip)
    end
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
foreman_remote_execution-14.1.4 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-14.1.3 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-14.1.2 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-14.1.1 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-14.1.0 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-14.0.2 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-14.0.1 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.2.6 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-14.0.0 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.2.5 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.2.4 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.2.3 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.2.2 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-12.0.7 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.2.1 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.2.0 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-10.1.3 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-13.0.0 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-12.0.5 app/lib/foreman_remote_execution/provider_input.rb
foreman_remote_execution-12.0.4 app/lib/foreman_remote_execution/provider_input.rb