Class: RailsAppGenerator::Dependencies

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

Overview

XXXX

Instance Method Summary collapse

Constructor Details

#initialize(addon, context) ⇒ Dependencies

Returns a new instance of Dependencies.



6
7
8
9
10
# File 'lib/rails_app_generator/dependencies.rb', line 6

def initialize(addon, context)
  @addon = addon
  @context = context
  @options = context.options
end

Instance Method Details

#satisfied?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
18
# File 'lib/rails_app_generator/dependencies.rb', line 12

def satisfied?
  @addon.dependencies.each do |dependency|
    return false unless dependencies_satisfied?(dependency)
  end

  true
end