Sha256: e306f6a243e9eb304704b120d4faf928bc71d700876cc427b55d998a275ffc49
Contents?: true
Size: 445 Bytes
Versions: 18
Compression:
Stored size: 445 Bytes
Contents
Rhosync::Server.api :list_sources do |params,user| sources = App.load(APP_NAME).sources.members if params[:partition_type].nil? or params[:partition_type] == 'all' sources.to_json else res = [] sources.each do |name| s = Source.load(name,{:app_id => APP_NAME,:user_id => '*'}) if s.partition_type and s.partition_type == params[:partition_type] res << name end end res.to_json end end
Version data entries
18 entries across 18 versions & 1 rubygems