Sha256: dabf3fa5bbc97864aaa3b4bd937a55e7e573f5f79b15f946840ef504a30d97dc
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 Bytes
Contents
def build_url_for(entity) URI.escape case entity when String "/builds/#{entity}/list" when ::Juici::Project "/builds/#{entity.name}/list" when ::Juici::Build "/builds/#{entity[:parent]}/show/#{entity[:_id]}" end end def rebuild_url_for(entity) URI.escape case entity when ::Juici::Build "/builds/#{entity[:parent]}/rebuild/#{entity[:_id]}" end end def kill_url_for(entity) URI.escape case entity when ::Juici::Build "/builds/kill" end end def cancel_url_for(entity) URI.escape case entity when ::Juici::Build "/builds/cancel" end end def edit_url_for(entity) URI.escape case entity when ::Juici::Build "/builds/#{entity[:parent]}/edit/#{entity[:_id]}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
juici-0.0.1.alpha1 | lib/juici/helpers/url_helpers.rb |
juici-0.0.0.alpha1 | lib/juici/helpers/url_helpers.rb |