Sha256: c09ef4a5df1449abfdfa0aa2b887f7ac34e8c0495d6ce52e2c0e93497fa9a3da

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

require 'rbconfig'

require 'nano/file/self/read_list'

confdir = Config::CONFIG['sysconfdir']
sitedir = Config::CONFIG['sitelibdir']

noauto = File.join( confdir, 'facets', 'noauto.yml' )
noauto = File.read_list( noauto )
noauto = noauto.collect{ |r| r.chomp('.rb') + '.rb' }

all = []
Dir.chdir( File.join( Config::CONFIG['sitelibdir'], 'facet' ) ) do
  all = Dir.glob( '*/*.rb' ) + Dir.glob( '*/*/*.rb' )
end

all = all - noauto
all.each { |f| require File.join( 'facet', f ) }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/nano/all.rb