Sha256: 70b6db8601ca7b952d57941eea499dd004526a0431780043b8553e004151af4f

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

#
#  Project BivouacSample
#
#  Created using bivouac on Sat Apr 19 09:06:04 +0200 2008.
#  Copyright (c) 2008 __My__. All rights reserved.
#

require 'ostruct'
require 'yaml'

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       => open("#{File.dirname( __FILE__ )}/database.yml") {|f| YAML.load(f)},
        
        # 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.2.3 examples/bivouac_sample/config/environment.rb
bivouac-0.4.0 examples/bivouac_sample/config/environment.rb
bivouac-0.2.4 examples/bivouac_sample/config/environment.rb
bivouac-0.2.5 examples/bivouac_sample/config/environment.rb
bivouac-0.3.0 examples/bivouac_sample/config/environment.rb