Sha256: 1696d609322b9d64e0b5a55ed9384962127cc349350de7d9dd282feb3ea002d1

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

module Pumper
  class Configuration
    class ProjectNotSet < StandardError; end

    class << self
      def configure!(options)
        validate(options)

        options
      end

      private

      def validate(options)
        raise ProjectNotSet if options[:project].nil?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pumper-1.0.1 lib/pumper/configuration.rb
pumper-0.0.1 lib/pumper/configuration.rb