Class: Bushido::Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/bushido/platform.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.hostObject



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

.keyObject



9
10
11
# File 'lib/bushido/platform.rb', line 9

def key
  ENV['BUSHIDO_APP_KEY']
end

.nameObject



4
5
6
# File 'lib/bushido/platform.rb', line 4

def name
  ENV['BUSHIDO_NAME']
end

.publish_urlObject



13
14
15
# File 'lib/bushido/platform.rb', line 13

def publish_url
  "#{host}/apps/#{name}/bus"
end