Sha256: 2757869f3e08589779cdffb3e150daf5051b7d9995d6fcaa1c09a9f36dd435e7

Contents?: true

Size: 390 Bytes

Versions: 53

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true
module Krane
  class RunnerTaskConfigValidator < TaskConfigValidator
    def initialize(template, *arguments)
      super(*arguments)
      @template = template
      @validations += %i(validate_template)
    end

    private

    def validate_template
      if @template.blank?
        @errors << "Task template name can't be nil"
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
krane-3.6.2 lib/krane/runner_task_config_validator.rb
krane-3.6.1 lib/krane/runner_task_config_validator.rb
krane-3.5.2 lib/krane/runner_task_config_validator.rb
krane-3.5.1 lib/krane/runner_task_config_validator.rb
krane-3.5.0 lib/krane/runner_task_config_validator.rb
krane-3.4.2 lib/krane/runner_task_config_validator.rb
krane-3.4.1 lib/krane/runner_task_config_validator.rb
krane-3.4.0 lib/krane/runner_task_config_validator.rb
krane-3.3.0 lib/krane/runner_task_config_validator.rb
krane-3.2.0 lib/krane/runner_task_config_validator.rb
krane-3.1.0 lib/krane/runner_task_config_validator.rb
krane-3.0.1 lib/krane/runner_task_config_validator.rb
krane-3.0.0 lib/krane/runner_task_config_validator.rb
krane-2.4.9 lib/krane/runner_task_config_validator.rb
krane-2.4.8 lib/krane/runner_task_config_validator.rb
krane-2.4.7 lib/krane/runner_task_config_validator.rb
krane-2.4.6 lib/krane/runner_task_config_validator.rb
krane-2.4.5 lib/krane/runner_task_config_validator.rb
krane-2.4.4 lib/krane/runner_task_config_validator.rb
krane-2.4.3 lib/krane/runner_task_config_validator.rb