lib/bonsai/exporter.rb in bonsai-1.1.4 vs lib/bonsai/exporter.rb in bonsai-1.1.5

- old
+ new

@@ -1,15 +1,13 @@ require 'fileutils' require 'less' module Bonsai class Exporter - @@path = "output" - class << self - def path; @@path; end - def path=(path); @@path = path; end + attr_accessor :path + def path; @path || "output"; end def process! setup copy_public copy_assets @@ -64,18 +62,15 @@ def write_readme Bonsai.log "Writing ABOUT-THIS-SITE" readme = <<-README This site was built using Bonsai (http://tinytree.info) - - To make changes to the site using Bonsai you will require the original source files. - Please contact the author of your site for details. - It may also be a good idea to ensure that you've got Bonsai version #{Bonsai.version} or higher. - If you experience any unexplainable issues try uninstalling all versions of Bonsai (`gem uninstall bonsai`) and install version #{Bonsai.version} (`gem install bonsai -v #{Bonsai.version}`) + To make changes to the site you will require the original source files. + Please contact the author of your site for details. README - File.open("#{path}/ABOUT-THIS-SITE.txt", "w") {|file| file.write(readme) } + File.open("#{path}/ABOUT-THIS-SITE", "w") {|file| file.write(readme) } end def copy_assets Bonsai.log "Copying page assets" Page.all.each do |page| \ No newline at end of file