require 'alula/site' module Alula class RakeTasks include Rake::DSL if defined? Rake::DSL def self.install_tasks self.new().install end def initialize end def install desc "Generate Alula blog (development)" task :generate do puts "==> Generating blog..." site = Alula::Site.new site.generate end desc "Starts previw mode by development server" task :preview do puts "==> Starting preview" site = Alula::Site.new site.preview end desc "Generate blog (deployment)" task :publish do site = Alula::Site.new("asset_compress" => true) site.generate end desc "Starts preview server in deployment mode" task :preview_publish do site = Alula::Site.new("asset_compress" => true) site.preview end end end end