Sha256: 75a64dca44eaf61e6a41a89556cbb6274d7cdaa9e8388072294717de251b895e
Contents?: true
Size: 595 Bytes
Versions: 2
Compression:
Stored size: 595 Bytes
Contents
require "fastly-rails/engine" require "fastly-rails/client" require "fastly-rails/configuration" require "fastly-rails/errors" module FastlyRails attr_reader :client, :configuration def self.configuration @configuration ||= Configuration.new end def self.configure yield configuration if block_given? end def self.client raise NoAuthCredentialsProvidedError unless configuration.authenticatable? @client ||= Client.new( :api_key => configuration.api_key, :user => configuration.user, :password => configuration.password, ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastly-rails-0.1.2 | lib/fastly-rails.rb |
fastly-rails-0.1.1 | lib/fastly-rails.rb |