Sha256: 0f1a7107452500e8b81861041400189cf02ec061e6944d51bb2c2a672e7d6eda

Contents?: true

Size: 445 Bytes

Versions: 15

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Entangler
  module Executor
    module Validation
      module Base
        protected

        def validate_opts; end

        def validate_base_dir(base_dir)
          raise Entangler::ValidationError, "Base directory doesn't exist" unless File.exist?(base_dir)
          raise Entangler::ValidationError, 'Base directory is a file' unless File.directory?(base_dir)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
entangler-1.6.1 lib/entangler/executor/validation/base.rb
entangler-1.6.0 lib/entangler/executor/validation/base.rb
entangler-1.5.1 lib/entangler/executor/validation/base.rb
entangler-1.5.0 lib/entangler/executor/validation/base.rb
entangler-1.4.1 lib/entangler/executor/validation/base.rb
entangler-1.4.0 lib/entangler/executor/validation/base.rb
entangler-1.3.3 lib/entangler/executor/validation/base.rb
entangler-1.3.2 lib/entangler/executor/validation/base.rb
entangler-1.3.1 lib/entangler/executor/validation/base.rb
entangler-1.3.0 lib/entangler/executor/validation/base.rb
entangler-1.2.3 lib/entangler/executor/validation/base.rb
entangler-1.2.2 lib/entangler/executor/validation/base.rb
entangler-1.2.1 lib/entangler/executor/validation/base.rb
entangler-1.2.0 lib/entangler/executor/validation/base.rb
entangler-1.1.2 lib/entangler/executor/validation/base.rb