Class: Gemstreamer::Dependencies

Inherits:
Object
  • Object
show all
Defined in:
lib/dependencies.rb

Instance Method Summary collapse

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

#dependenciesObject



14
15
16
17
# File 'lib/dependencies.rb', line 14

def dependencies
  load_env    
  Rails.configuration.gems
end

#load_envObject



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