class Miyano::Build
Public Instance Methods
build()
click to toggle source
# File lib/miyano/cli/build.rb, line 21 def build Builder.new.build_the_world end
check_root()
click to toggle source
# File lib/miyano/cli/build.rb, line 3 def check_root unless Dir.exist?("post") and Dir.exist?("layout") fail "!!wrong dirctory" end end
clean()
click to toggle source
# File lib/miyano/cli/build.rb, line 9 def clean if Dir.exist?("_site") FileUtils.cd "_site" do files = Dir["*"] files.delete "CNAME" files.each do |f| FileUtils.rm_rf f end end end end