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 collapse
- 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
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Set any thinner settings by passing in a block.
-
.purge!(urls) ⇒ Object
Begin purging urls.
-
.stop! ⇒ Object
Halt any running instances of Thinner::Client.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/thinner.rb', line 13 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
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 |
.purge!(urls) ⇒ Object
Begin purging urls.
27 28 29 |
# File 'lib/thinner.rb', line 27 def self.purge! urls Purger.new(urls).purge! end |
.stop! ⇒ Object
Halt any running instances of Thinner::Client
22 23 24 |
# File 'lib/thinner.rb', line 22 def self.stop! Purger.stop! end |