Sha256: f89346ca0230120d1d9aa57866b8ed1baca710724d021cb22b0e5e262a702a1d

Contents?: true

Size: 883 Bytes

Versions: 2

Compression:

Stored size: 883 Bytes

Contents

require 'rubygems'

module Reflection
  autoload :CLI,              'reflection/cli'
  autoload :Config,           'reflection/config'
  autoload :Command,          'reflection/command'
  autoload :Directory,        'reflection/directory'
  autoload :Rails,            'reflection/rails'
  autoload :Repository,       'reflection/repository'
  autoload :Support,          'reflection/support'
  autoload :Validations,      'reflection/validations'
  
  class << self
    
    attr_accessor :home
    attr_accessor :log
    attr_accessor :verbose
    
    def boot!(args)
      @log = Reflection::Support::Log.new
      @home = Reflection::Support::Home.new
      @home.create
      Reflection::CLI.run!(args)
    end
    
    def version
      File.open(File.expand_path(File.join(__FILE__, '../..', 'VERSION')), 'r') do |f|
        f.readlines.first.to_s
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
basiszwo-reflection-0.5.1 lib/reflection.rb
reflection-0.5.0 lib/reflection.rb