Sha256: c8465479565a64c563a3bcd5f050af995a6f5da4c9571f4826d454652a3c4353

Contents?: true

Size: 676 Bytes

Versions: 4

Compression:

Stored size: 676 Bytes

Contents

# encoding: UTF-8

require 'simultaneous'
require 'sass'

module Spontaneous::Publishing
  class Immediate
    include ::Simultaneous::Task

    attr_reader :revision

    def initialize(site, revision, steps)
      @site, @revision, @steps = site, revision, steps
    end

    def publish_pages(pages)
      publish.publish_pages(pages)
    end

    def publish_all
      publish.publish_all
    end

    def publish
      Publish.new(@site, @revision, @steps)
    end

    def rerender
      Rerender.new(@site, @revision, @steps).rerender
    end

    def rerender_revision
      logger.info {  "Re-rendering revision #{@revision}"}
      render_revision
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta9 lib/spontaneous/publishing/immediate.rb
spontaneous-0.2.0.beta8 lib/spontaneous/publishing/immediate.rb
spontaneous-0.2.0.beta7 lib/spontaneous/publishing/immediate.rb
spontaneous-0.2.0.beta6 lib/spontaneous/publishing/immediate.rb