27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/msgtrail/publish.rb', line 27
def self.to_file_system(current_directory, directory_argument)
working_directory = File.join(current_directory, directory_argument)
config = Config.new(working_directory)
blog = Blog.new(config)
site = Site.new(config)
blog.fetch_blog_articles
blog.prepare_output_directory
blog.fetch_article_content
blog.generate_article_slugs
site.fetch_site_pages
site.generate_articles(blog.articles)
site.copy_files
exit(0)
end
|