Sha256: b6108ca3e8b488e142352135c8c1aa0702ac513aa7c9b50e00bc82bfe9e5fc1a

Contents?: true

Size: 1023 Bytes

Versions: 3

Compression:

Stored size: 1023 Bytes

Contents

#
#  Project <%= @conf.appname %>
#
#  Created using bivouac on <%= Time.now %>.
#  Copyright (c) <%= Time.now.year %> __My__. All rights reserved.
#

require 'ostruct'

module Bivouac
  class Environment
  
    attr_reader :environment
    
    def initialize
      @environment = OpenStruct.new( 
        # Address to bind to
        :address  => "<%= @conf.address %>",
        
        # Application port
        :port     => <%= @conf.port %>,
        
        # Database configuration
        :db       => <%= @conf.db %>,
        
        # Name of the application
        # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
        :appname  => "<%= @conf.appname %>",
        
        # Path of the application
        # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
        :appdir   => "<%= @conf.appdir %>",

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bivouac-0.2.0 lib/bivouac/template/environment.rb
bivouac-0.2.2 lib/bivouac/template/environment.rb
bivouac-0.2.1 lib/bivouac/template/environment.rb