Sha256: 05674facfab8be7897fb7ed998104aac210487c7cdcd018abe9fa776c8a0c1e0

Contents?: true

Size: 1.55 KB

Versions: 20

Compression:

Stored size: 1.55 KB

Contents

# load_path settings
def append_load_path_if_not_exist(new_lib_path)
  expanded_path = File.expand_path(new_lib_path)
  $LOAD_PATH.unshift expanded_path unless $LOAD_PATH.include? expanded_path
end
flydata_top_dir = File.expand_path('../../', __FILE__)
flydata_core_dir = File.join(flydata_top_dir, 'flydata-core')
flydata_core_lib_dir = File.expand_path('lib', flydata_core_dir)
append_load_path_if_not_exist(flydata_core_lib_dir)

# require common libs
require 'active_support/core_ext/string'
require 'active_support/time'
require 'highline/import'
require 'readline'
require 'json'
require 'pp'

require 'flydata/heroku'

module Flydata
  FLYDATA_DEBUG = !!(ENV['FLYDATA_DEBUG'])
  FLYDATA_HOME = ENV['FLYDATA_HOME'] || "#{ENV['HOME']}/.flydata"
  FLYDATA_TABLE_POSITIONS_DIR = ENV['FLYDATA_TABLE_POSITIONS'] || File.join(FLYDATA_HOME, 'positions')
  FLYDATA_GEM_HOME = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  FLYDATA_GEM_BIN = File.join(FLYDATA_GEM_HOME, 'bin')
  FLYDATA_TMPL_DIR = File.join(FLYDATA_GEM_HOME, 'tmpl')
  FLYDATA_FLUENT_PLUGIN_DIR = File.join(FLYDATA_GEM_HOME, 'lib', 'flydata', 'fluent-plugins')

  FLYDATA_SERVERINFO = File.join(FLYDATA_GEM_BIN, 'serverinfo')
  FLYDATA_LOG = File.join(FLYDATA_HOME, 'flydata.log')
  FLYDATA_CONF = File.join(FLYDATA_HOME, 'flydata.conf')
  FLYDATA_LOCK = File.join(FLYDATA_HOME, 'flydata_lock.pid')
  FLYDATA_HELPER_HOME = File.join(FLYDATA_HOME, 'helper')
  FLYDATA_HELPER_CONF = File.join(FLYDATA_HELPER_HOME, "helper.conf")

  VERSION_PATH = File.join(FLYDATA_GEM_HOME, 'VERSION')
  include Flydata::Heroku
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
flydata-0.7.19 lib/flydata.rb
flydata-0.7.18 lib/flydata.rb
flydata-0.7.17 lib/flydata.rb
flydata-0.7.16 lib/flydata.rb
flydata-0.7.15 lib/flydata.rb
flydata-0.7.14 lib/flydata.rb
flydata-0.7.13 lib/flydata.rb
flydata-0.7.12 lib/flydata.rb
flydata-0.7.11 lib/flydata.rb
flydata-0.7.10 lib/flydata.rb
flydata-0.7.9 lib/flydata.rb
flydata-0.7.8 lib/flydata.rb
flydata-0.7.7 lib/flydata.rb
flydata-0.7.6 lib/flydata.rb
flydata-0.7.5 lib/flydata.rb
flydata-0.7.4 lib/flydata.rb
flydata-0.7.2.1 lib/flydata.rb
flydata-0.7.2 lib/flydata.rb
flydata-0.7.1 lib/flydata.rb
flydata-0.7.0 lib/flydata.rb