Sha256: 9c2b885d34f1c5c20f082c0dd3261b4bafc84628a085988b78c81c1cf29a9c70

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

module Wlog
# Static path data.
#
# Please follow the convention that if vars are dirs, then they end with '/'
#
# @author  Simon Symeonidis
  module StaticConfigurations
    # The application name
    AppName = "wlog"

    # Absolute path to the configuration directory
    ConfigDirectory = "#{ENV['HOME']}/.config/"

    # Absolute path to the application directory
    AppDirectory = "#{ConfigDirectory}#{AppName}/"

    # Absolute path to the data directory
    DataDirectory = "#{AppDirectory}data/"

    # Default database name (when unspecified)
    DefaultDb = "#{ARGV[0] || 'default'}"

    # Where the template files exist
    TemplateDir = "#{AppDirectory}templates/"

    # Sample file to provide the user with
    TemplateSampleFile = "#{TemplateDir}/default.erb"

    # In the future if someone wants to code an alternative, go ahead
    TemplateOutputDir = "#{ENV['HOME']}/Documents/wlog/#{DefaultDb}/"

    # This is used to see if it is the first setup or not
    TaintFile = "#{AppDirectory}tainted"

    # The configuration file
    ConfigFile = "#{AppDirectory}config"
  end
end # module Wlog

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wlog-1.2.2 lib/wlog/domain/static_configurations.rb