Class: Nonnative::Service

Inherits:
Runner
  • Object
show all
Defined in:
lib/nonnative/service.rb

Instance Attribute Summary

Attributes inherited from Runner

#proxy

Instance Method Summary collapse

Methods inherited from Runner

#initialize, #name

Constructor Details

This class inherits a constructor from Nonnative::Runner

Instance Method Details

#startObject



5
6
7
8
9
# File 'lib/nonnative/service.rb', line 5

def start
  proxy.start

  Nonnative.logger.info "started service '#{service.name}'"
end

#stopObject



11
12
13
14
15
# File 'lib/nonnative/service.rb', line 11

def stop
  proxy.stop

  Nonnative.logger.info "stopped service '#{service.name}'"
end