Module: Thinner
- Defined in:
- lib/thinner.rb,
lib/thinner/client.rb,
lib/thinner/purger.rb,
lib/thinner/command_line.rb,
lib/thinner/configuration.rb
Defined Under Namespace
Classes: Client, CommandLine, Configuration, Purger
Constant Summary
- ROOT =
The base location of the Thinner gem.
File. "#{File.dirname __FILE__}/.."
- VERSION =
The Thinner version.
File.read("#{ROOT}/VERSION").chomp
- PROCESS_IDENTIFIER =
The process label to run each Thinner::Client under.
"Thinner"
Class Attribute Summary (collapse)
-
+ (Object) configuration
Returns the value of attribute configuration.
Class Method Summary (collapse)
-
+ (Object) configure {|configuration| ... }
Set any thinner settings by passing in a block.
-
+ (Object) purge!(urls)
Begin purging urls.
-
+ (Object) stop!
Halt any running instances of Thinner::Client.
Class Attribute Details
+ (Object) configuration
Returns the value of attribute configuration
13 14 15 |
# File 'lib/thinner.rb', line 13 def configuration @configuration end |
Class Method Details
+ (Object) configure {|configuration| ... }
Set any thinner settings by passing in a block.
16 17 18 19 |
# File 'lib/thinner.rb', line 16 def self.configure self.configuration ||= Configuration.new yield configuration end |
+ (Object) purge!(urls)
Begin purging urls.
27 28 29 |
# File 'lib/thinner.rb', line 27 def self.purge! urls Purger.new(urls).purge! end |
+ (Object) stop!
Halt any running instances of Thinner::Client
22 23 24 |
# File 'lib/thinner.rb', line 22 def self.stop! Purger.stop! end |