Module: EasySitemap

Defined in:
lib/easy_sitemap.rb,
lib/easy_sitemap/engine.rb,
lib/easy_sitemap/parser.rb,
lib/easy_sitemap/runner.rb,
lib/easy_sitemap/version.rb,
lib/easy_sitemap/generator.rb

Defined Under Namespace

Classes: Engine, Generator, Parser, Runner

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.create(file_path) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/easy_sitemap.rb', line 13

def self.create(file_path)
  f = File.open(file_path, "w")
  generator = Generator.new(::Issue.on_active_project)
  #generator = Generator.new(::Issue.limit(10))
  f.write(generator.to_xml)
ensure
  f.close
end