Class: Sitemaps::Generator
- Inherits:
-
Object
- Object
- Sitemaps::Generator
- Defined in:
- lib/generator.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(configuration_object) ⇒ Generator
constructor
A new instance of Generator.
- #prepare ⇒ Object
Constructor Details
#initialize(configuration_object) ⇒ Generator
Returns a new instance of Generator.
7 8 9 |
# File 'lib/generator.rb', line 7 def initialize(configuration_object) self.configuration = configuration_object end |
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
5 6 7 |
# File 'lib/generator.rb', line 5 def configuration @configuration end |
Instance Method Details
#execute! ⇒ Object
22 23 24 25 26 |
# File 'lib/generator.rb', line 22 def execute! download! compress! compile! end |
#prepare ⇒ Object
11 12 13 |
# File 'lib/generator.rb', line 11 def prepare Dir.mkdir configuration.dump_dir end |