Sha256: 98c62b81ebbd0266ee54e11c6c91b3830c6acd735e85f476ee3fe0300fbd4049
Contents?: true
Size: 929 Bytes
Versions: 5
Compression:
Stored size: 929 Bytes
Contents
module Thinner # The base location of the Thinner gem. ROOT = File.expand_path "#{File.dirname __FILE__}/.." # The Thinner version. VERSION = File.read("#{ROOT}/VERSION").chomp # The process label to run each Thinner::Client under. PROCESS_IDENTIFIER = "Thinner" # Set up the configuration instance as a class level accessor. class << self; attr_accessor :configuration; end # Set any thinner settings by passing in a block. def self.configure self.configuration ||= Configuration.new yield configuration end # Halt any running instances of Thinner::Client def self.stop! Purger.stop! end # Begin purging urls. def self.purge! urls Purger.new(urls).purge! end end require "klarlack" require "logger" require "#{Thinner::ROOT}/lib/thinner/configuration" require "#{Thinner::ROOT}/lib/thinner/client" require "#{Thinner::ROOT}/lib/thinner/purger"
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
thinner-0.1.4 | lib/thinner.rb |
thinner-0.1.3 | lib/thinner.rb |
thinner-0.1.2 | lib/thinner.rb |
thinner-0.1.1 | lib/thinner.rb |
thinner-0.1.0 | lib/thinner.rb |