Class: NotificationServer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/notification_server/configuration.rb

Class Method Summary collapse

Class Method Details

.foreverObject



7
# File 'lib/notification_server/configuration.rb', line 7

def forever; _config['forever'] end

.hostnameObject



5
# File 'lib/notification_server/configuration.rb', line 5

def hostname; _config['hostname'] end

.portObject



6
# File 'lib/notification_server/configuration.rb', line 6

def port; _config['port'] end

.script_pathObject



9
# File 'lib/notification_server/configuration.rb', line 9

def script_path; "#{secure ? 'https' : 'http'}://#{hostname}:#{port}/nowjs/now.js" end

.secureObject



8
# File 'lib/notification_server/configuration.rb', line 8

def secure; _config['secure'] end