Class: Trifle::Docs::Operations::Sitemap

Inherits:
Object
  • Object
show all
Defined in:
lib/trifle/docs/operations/sitemap.rb

Instance Method Summary collapse

Constructor Details

#initialize(**keywords) ⇒ Sitemap

Returns a new instance of Sitemap.



7
8
9
# File 'lib/trifle/docs/operations/sitemap.rb', line 7

def initialize(**keywords)
  @config = keywords[:config]
end

Instance Method Details

#configObject



11
12
13
# File 'lib/trifle/docs/operations/sitemap.rb', line 11

def config
  @config || Trifle::Docs.default
end

#performObject



15
16
17
# File 'lib/trifle/docs/operations/sitemap.rb', line 15

def perform
  config.harvester.sitemap
end