Class: Rodbot::Services::App

Inherits:
Object
  • Object
show all
Extended by:
Memoize
Includes:
Memoize
Defined in:
lib/rodbot/services/app.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Memoize

included

Class Method Details

.urlString

URL (including port) to reach the app service locally

Returns:

  • (String)

    URL



18
19
20
21
22
23
# File 'lib/rodbot/services/app.rb', line 18

memoize def url
  [
    (ENV['RODBOT_APP_URL'] || 'http://localhost'),
    Rodbot.config(:port)
  ].join(':')
end

Instance Method Details

#tasksObject



26
27
28
29
# File 'lib/rodbot/services/app.rb', line 26

def tasks(**)
  puts "Starting app service on http://#{bind.join(':')}"
  [method(:run)]
end