Class: PuppetLibrary::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/puppet_library/server.rb

Instance Method Summary collapse

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 (author, module_name)
    @repo.(author, module_name).map {|| .new()}
end