Module: NononoSender::Http
- Extended by:
- NononoSender, Http
- Included in:
- Http
- Defined in:
- lib/nonono_sender/http.rb,
lib/nonono_sender/http/version.rb
Defined Under Namespace
Constant Summary collapse
- EVENT_STACK =
[]
- VERSION =
"0.1.0"
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
41 42 43 44 |
# File 'lib/nonono_sender/http.rb', line 41 def init raise Error if invalid?('NONONO_HTTP_PORT') || invalid?('NONONO_HTTP_USER') || invalid?('NONONO_HTTP_PASSWORD') EVENT_STACK.clear end |
#invalid?(env) ⇒ Boolean
37 38 39 |
# File 'lib/nonono_sender/http.rb', line 37 def invalid?(env) ENV[env].nil? || ENV[env].empty? end |
#run ⇒ Object
46 47 48 |
# File 'lib/nonono_sender/http.rb', line 46 def run App.run! port: ENV['NONONO_HTTP_PORT'].to_i end |