Sha256: 594a2373cb5ba7e6273579ec45b8ec772f9b0de13a045b6050de003e2989a5ba

Contents?: true

Size: 882 Bytes

Versions: 5

Compression:

Stored size: 882 Bytes

Contents

# encoding: UTF-8

class Spontaneous::Site
  module State
    extend Spontaneous::Concern

    def revision(revision)
      Spontaneous::Revision.new(revision, self)
    end

    def state
      Spontaneous::State.instance
    end

    def working_revision
      Spontaneous::State.revision
    end

    def published_revision
      Spontaneous::State.published_revision
    end

    def pending_revision
      Spontaneous::State.pending_revision
    end

    def modified_at
      Spontaneous::State.modified_at
    end

    def must_publish_all?
      Spontaneous::State.must_publish_all?
    end

    def must_publish_all!(state = true)
      Spontaneous::State.must_publish_all!(state)
    end

    def revision_root(*path)
      instance.revision_root(*path)
    end

    def revision_dir(revision=nil, root = nil)
      instance.revision_dir(revision, root)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/site/state.rb
spontaneous-0.2.0.beta9 lib/spontaneous/site/state.rb
spontaneous-0.2.0.beta8 lib/spontaneous/site/state.rb
spontaneous-0.2.0.beta7 lib/spontaneous/site/state.rb
spontaneous-0.2.0.beta6 lib/spontaneous/site/state.rb