Expose Extension info through hash-like access.
This commit is contained in:
parent
7c338d9f6d
commit
ce8aeff7a0
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@ module Diakonos
|
|||
def initialize( dir )
|
||||
@scripts = []
|
||||
@confs = []
|
||||
@info = YAML.load_file( File.join( dir, 'info.yaml' ) )
|
||||
|
||||
Dir[ File.join( dir, '**', '*.rb' ) ].each do |ext_file|
|
||||
@scripts << ext_file
|
||||
|
@ -17,6 +18,10 @@ module Diakonos
|
|||
end
|
||||
end
|
||||
|
||||
def []( key )
|
||||
@info[ key ]
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in a new issue