Module: CfScript::Scope::App::Routes
- Included in:
- CfScript::Scope::App
- Defined in:
- lib/cf_script/scope/app/routes.rb
Instance Method Summary collapse
- #has_route?(domain, host = nil) ⇒ Boolean
- #map_route(domain, host = nil) ⇒ Object
- #unmap_route(domain, host = nil) ⇒ Object
Instance Method Details
#has_route?(domain, host = nil) ⇒ Boolean
3 4 5 6 7 |
# File 'lib/cf_script/scope/app/routes.rb', line 3 def has_route?(domain, host = nil) route = [host, domain].compact.join('.') urls.include?(route) end |