Class: Gemstreamer::Dependencies
- Inherits:
-
Object
- Object
- Gemstreamer::Dependencies
- Defined in:
- lib/dependencies.rb
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(path) ⇒ Dependencies
constructor
A new instance of Dependencies.
- #load_env ⇒ Object
Constructor Details
#initialize(path) ⇒ Dependencies
Returns a new instance of Dependencies.
2 3 4 |
# File 'lib/dependencies.rb', line 2 def initialize(path) @path = path end |
Instance Method Details
#dependencies ⇒ Object
14 15 16 17 |
# File 'lib/dependencies.rb', line 14 def dependencies load_env Rails.configuration.gems end |
#load_env ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/dependencies.rb', line 6 def load_env begin require "#{@path}/config/environment" rescue raise "NoEnvironment" end end |