Class: PuppetLibrary::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- PuppetLibrary::Server
- Defined in:
- lib/puppet_library/server.rb
Instance Method Summary collapse
- #get_metadata(author, module_name) ⇒ Object
-
#initialize(module_repo = ModuleRepo.new("modules")) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(module_repo = ModuleRepo.new("modules")) ⇒ Server
Returns a new instance of Server.
87 88 89 90 |
# File 'lib/puppet_library/server.rb', line 87 def initialize(module_repo = ModuleRepo.new("modules")) super(nil) @repo = module_repo end |
Instance Method Details
#get_metadata(author, module_name) ⇒ Object
147 148 149 |
# File 'lib/puppet_library/server.rb', line 147 def (, module_name) @repo.(, module_name).map {|| ModuleMetadata.new()} end |