Sha256: 9af56886bfbc184d5a4f9123d952e572aa36cd69c028c9237921bb3358a5136d

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

# -*- encoding: utf-8 -*-
module Perkins
  class AppProxy
    APP_ATTRIBUTES = [:host, :port, :redis, :github_client_secret, :github_client_id ]

    attr_accessor *APP_ATTRIBUTES
    attr_reader :app

    def initialize(options)
      @app = Application.new(options)
    end

    def server=(opts={})
      opts.each{|k,v| Server.set(k,v)}
      Server.set(:app , @app)
    end

    def config(&block)
      @app.instance_eval &block
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
perkins-0.0.5 lib/perkins/dsl/app_proxy.rb
perkins-0.0.3 lib/perkins/dsl/app_proxy.rb
perkins-0.0.2 lib/perkins/dsl/app_proxy.rb
perkins-0.0.1 lib/perkins/dsl/app_proxy.rb