Class: Embargo
Class Method Summary collapse
Methods inherited from Cuba
Class Method Details
.app_directory ⇒ Object
23 24 25 |
# File 'lib/embargo.rb', line 23 def self.app_directory @@app_directory ||= Dir.pwd end |
.directory ⇒ Object
19 20 21 |
# File 'lib/embargo.rb', line 19 def self.directory File.dirname(__FILE__) end |
.require_file(file_name) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/embargo.rb', line 27 def self.require_file(file_name) project_file_name = Embargo.app_directory + "/" + file_name project_file_exists = File.exist?(project_file_name) if project_file_exists require project_file_name else = Embargo.directory + "/" + file_name = File.exist?() if require end end end |