Module: Yad

Defined in:
lib/yad.rb,
lib/yad/core.rb,
lib/yad/scm/git.rb,
lib/yad/db/rails.rb,
lib/yad/web/apache.rb,
lib/yad/app/passenger.rb,
lib/yad/framework/rails.rb,
lib/yad/maintenance/shared_system.rb

Defined Under Namespace

Modules: App, Db, Framework, Maintenance, Scm, Web Classes: Core

Constant Summary collapse

LIBPATH =

:stopdoc:

::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR
VERSION =
if File.exist?(File.join(PATH, 'VERSION.yml'))
  config = YAML.load_file(File.join(PATH, 'VERSION.yml'))
  "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
  "0.0.0"
end

Class Method Summary collapse

Class Method Details

.versionObject

Returns the version string for the library.



42
43
44
# File 'lib/yad.rb', line 42

def self.version
  VERSION
end