Module: Katello::Resources::Candlepin::PoolResource
- Included in:
- Pool, UpstreamPool
- Defined in:
- app/lib/katello/resources/candlepin.rb
Instance Method Summary collapse
Instance Method Details
#path(id = nil, owner_label = nil) ⇒ Object
187 188 189 190 191 192 193 194 195 |
# File 'app/lib/katello/resources/candlepin.rb', line 187 def path(id = nil, owner_label = nil) if owner_label && id "#{prefix}/owners/#{owner_label}/pools/#{id}" elsif owner_label "#{prefix}/owners/#{owner_label}/pools/" else "#{prefix}/pools/#{id}" end end |