Sha256: 4aec7d7fc85630ccbd6d877838bb90e28f53069c4d3d4e8e4fac7cb7f74d1812

Contents?: true

Size: 579 Bytes

Versions: 70

Compression:

Stored size: 579 Bytes

Contents

module Clamp
  module Parameter

    module Parsing

      protected

      def parse_parameters

        self.class.parameters.each do |parameter|
          begin
            parameter.consume(remaining_arguments).each do |value|
              parameter.of(self).take(value)
            end
          rescue ArgumentError => e
            signal_usage_error "parameter '#{parameter.name}': #{e.message}"
          end
        end

        self.class.parameters.each do |parameter|
          parameter.of(self).default_from_environment
        end

      end

    end

  end
end

Version data entries

70 entries across 66 versions & 18 rubygems

Version Path
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/parameter/parsing.rb