Sha256: 40e0487639bd157bbd092a04a1b1493c5f288ecc7e9c964e627527e620d0d146

Contents?: true

Size: 725 Bytes

Versions: 4

Compression:

Stored size: 725 Bytes

Contents

# encoding: UTF-8

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

    module ClassMethods
      def working_revision
        Spontaneous::State.revision
      end

      def 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 revision_root(*path)
        instance.revision_root(*path)
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta4 lib/spontaneous/site/state.rb
spontaneous-0.2.0.beta3 lib/spontaneous/site/state.rb
spontaneous-0.2.0.beta2 lib/spontaneous/site/state.rb
spontaneous-0.2.0.beta1 lib/spontaneous/site/state.rb