Class: Rodbot::Services::App
- Inherits:
-
Object
- Object
- Rodbot::Services::App
- Extended by:
- Memoize
- Includes:
- Memoize
- Defined in:
- lib/rodbot/services/app.rb
Class Method Summary collapse
-
.url ⇒ String
URL (including port) to reach the app service locally.
Instance Method Summary collapse
Methods included from Memoize
Class Method Details
.url ⇒ String
URL (including port) to reach the app service locally
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
#tasks ⇒ Object
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 |