Sha256: b4b3827f96b9b019a2948b6455c046d2567dee2421cc69d41c6a90b12c704d2a

Contents?: true

Size: 391 Bytes

Versions: 36

Compression:

Stored size: 391 Bytes

Contents

require_relative './base'
require_relative './dsl'

module HammerCLI
  module Options
    module Validators
      class DSLBlockValidator < Base
        def initialize(&block)
          @validation_block = block
        end

        def run(options, option_values)
          dsl = DSL.new(options, option_values)
          dsl.run(&@validation_block)
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hammer_cli-3.13.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.12.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.10.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.9.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.8.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.7.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.5.1 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.6.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.5.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.4.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.3.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.2.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.1.1 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.0.2 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.1.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.0.1 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-3.0.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-2.5.1 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-2.5.0 lib/hammer_cli/options/validators/dsl_block_validator.rb
hammer_cli-2.3.1 lib/hammer_cli/options/validators/dsl_block_validator.rb