Sha256: 5cd885cf97b4a7030bb899d968cfc5324cb1627c7c974545af7aabbadf313398

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

module PackageTracker
  module Carrier    
    def validate_credentials!(credentials)
      required_credentials.each do |key| 
        raise MissingCredentialsError, "You must provide a #{key} in the options" unless credentials && credentials[key]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
package_tracker-0.0.3 lib/package_tracker/carrier.rb
package_tracker-0.0.2 lib/package_tracker/carrier.rb