Class: Bushido::Platform
- Inherits:
-
Object
- Object
- Bushido::Platform
- Defined in:
- lib/bushido/platform.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.host ⇒ Object
17 18 19 20 |
# File 'lib/bushido/platform.rb', line 17 def host port = ENV['BUSHIDO_PORT'] ? ":#{ENV['BUSHIDO_PORT']}" : "" "http://#{ENV['BUSHIDO_HOST'] || 'bushi.do'}#{port}" end |
.key ⇒ Object
9 10 11 |
# File 'lib/bushido/platform.rb', line 9 def key ENV['BUSHIDO_APP_KEY'] end |
.name ⇒ Object
4 5 6 |
# File 'lib/bushido/platform.rb', line 4 def name ENV['BUSHIDO_NAME'] end |
.publish_url ⇒ Object
13 14 15 |
# File 'lib/bushido/platform.rb', line 13 def publish_url "#{host}/apps/#{name}/bus" end |