Class: Umami::Server
- Inherits:
-
Object
- Object
- Umami::Server
- Defined in:
- lib/chef-umami/server.rb
Instance Method Summary collapse
-
#initialize ⇒ Server
constructor
A new instance of Server.
- #server ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize ⇒ Server
Returns a new instance of Server.
19 20 21 |
# File 'lib/chef-umami/server.rb', line 19 def initialize @server = server end |
Instance Method Details
#server ⇒ Object
23 24 25 |
# File 'lib/chef-umami/server.rb', line 23 def server @server ||= ChefZero::Server.new(port: 8889) end |
#start ⇒ Object
27 28 29 |
# File 'lib/chef-umami/server.rb', line 27 def start server.start_background end |
#stop ⇒ Object
31 32 33 |
# File 'lib/chef-umami/server.rb', line 31 def stop server.stop end |