Class: Bonanza::LinkStrategies::Openshift
- Defined in:
- lib/bonanza/link_strategies/openshift.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#app, #environment, #initialize, #url_to
Constructor Details
This class inherits a constructor from Bonanza::LinkStrategies::Base
Instance Method Details
#domain ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bonanza/link_strategies/openshift.rb', line 10 def domain case environment.to_s when 'development' 'http://openshift.dev' when 'test' 'https://openshift.test' when 'staging' 'https://openshift-staging.nine.ch:8443' when 'production' case entity when 'openshift:project:es34' 'https://openshift.nine.ch:8443' else 'https://aws-openshift.nine.ch:8443' end end end |
#paths ⇒ Object
4 5 6 7 8 |
# File 'lib/bonanza/link_strategies/openshift.rb', line 4 def paths { :'openshift:project:es34' => '/console/project/%{reference}' } end |