Sha256: 89826fa99b6cd358d80f234477ad188790dc912d0dcf33c39e7cd13d7d30c7a0

Contents?: true

Size: 1001 Bytes

Versions: 5

Compression:

Stored size: 1001 Bytes

Contents

#
#  Project BivouacSample
#
#  Created using bivouac on Sun Mar 23 20:30:12 +0100 2008.
#  Copyright (c) 2008 __My__. All rights reserved.
#

require 'ostruct'

module Bivouac
  class Environment
  
    attr_reader :environment
    
    def initialize
      @environment = OpenStruct.new( 
        # Address to bind to
        :address  => "0.0.0.0",
        
        # Application port
        :port     => 3301,
        
        # Database configuration
        :db       => {:database=>"db/bivouac_sample.db", :adapter=>"sqlite3"},
        
        # Name of the application
        # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
        :appname  => "BivouacSample",
        
        # Path of the application
        # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
        :appdir   => "bivouac_sample",

        # Organisation type of the application
        # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
        :orgtype  => "GOH"
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bivouac-0.1.5 examples/bivouac_sample/config/environment.rb
bivouac-0.2.0 examples/bivouac_sample/config/environment.rb
bivouac-0.1.6 examples/bivouac_sample/config/environment.rb
bivouac-0.2.1 examples/bivouac_sample/config/environment.rb
bivouac-0.2.2 examples/bivouac_sample/config/environment.rb