Sha256: 8413116e58a51bd78953bd03a3ad97976dbfbe0393c7adc3fc0e0c1777262e50
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
require 'baldwin/version' module Baldwin autoload :Installer, 'baldwin/installer' RAILS_DIRNAME = 'spec/rails' RAILS_PATTERN = "#{RAILS_DIRNAME}/rails-*" def self.env! require 'rails/version' ENV[ 'BALDWIN_RAILS_NAME' ] = "rails-#{Rails::VERSION::STRING}" ENV[ 'BALDWIN_RAILS_PATH' ] = "#{RAILS_DIRNAME}/#{ENV[ 'BALDWIN_RAILS_NAME' ]}" end def self.root Pathname.new Dir.pwd end def self.rails root.join ENV[ 'BALDWIN_RAILS_PATH' ] end def self.apps Dir[ RAILS_PATTERN ].map { |app| Pathname.new app } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
baldwin-0.2.6 | lib/baldwin.rb |