Class: Lono::Finder::Blueprint::Configset

Inherits:
Configset show all
Defined in:
lib/lono/finder/blueprint/configset.rb

Instance Method Summary collapse

Methods inherited from Configset

#detection_path, #type

Methods inherited from Lono::Finder::Base

#components, #detect?, find, #find, #find_all, #gems, #list, list, #materialized, #project, #vendor

Constructor Details

#initialize(options = {}) ⇒ Configset

Returns a new instance of Configset.



3
4
5
6
# File 'lib/lono/finder/blueprint/configset.rb', line 3

def initialize(options={})
  super(**options) # **options to remove: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
  @blueprint_root = options[:blueprint_root] || Lono.blueprint_root
end

Instance Method Details

#blueprint_appObject



12
13
14
15
# File 'lib/lono/finder/blueprint/configset.rb', line 12

def blueprint_app
  roots = path_roots("#{@blueprint_root}/app/#{type.pluralize}")
  components(roots, "blueprint")
end

#localObject



8
9
10
# File 'lib/lono/finder/blueprint/configset.rb', line 8

def local
  project + vendor + blueprint_app + gems
end