Class: Umami::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-umami/server.rb

Instance Method Summary collapse

Constructor Details

#initializeServer

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

#serverObject



23
24
25
# File 'lib/chef-umami/server.rb', line 23

def server
  @server ||= ChefZero::Server.new(port: 8889)
end

#startObject



27
28
29
# File 'lib/chef-umami/server.rb', line 27

def start
  server.start_background
end

#stopObject



31
32
33
# File 'lib/chef-umami/server.rb', line 31

def stop
  server.stop
end