Sha256: 1872c2cf7228449485c7e73e4b3a4e6407cd8dc7b299bccb2c4017fd8c49b5b3

Contents?: true

Size: 446 Bytes

Versions: 7

Compression:

Stored size: 446 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Plugins::Site
  module Instance
    extend ActiveSupport::Concern

    module ClassMethods
      extend Forwardable

      @@instance = nil

      def instantiate(root, env, mode)
        @@instance = Spontaneous::Site.new(root, env, mode)
      end

      def instance
        @@instance
      end

      def_delegators :instance, :config, :database, :database=
    end # ClassMethods
  end # Instance
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha7 lib/spontaneous/plugins/site/instance.rb
spontaneous-0.2.0.alpha6 lib/spontaneous/plugins/site/instance.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/plugins/site/instance.rb
spontaneous-0.2.0.alpha4 lib/spontaneous/plugins/site/instance.rb
spontaneous-0.2.0.alpha3 lib/spontaneous/plugins/site/instance.rb
spontaneous-0.2.0.alpha2 lib/spontaneous/plugins/site/instance.rb
spontaneous-0.2.0.alpha1 lib/spontaneous/plugins/site/instance.rb