Class: Serverkit::Resources::Service

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/resources/service.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #backend, #recipe

Instance Method Summary collapse

Methods inherited from Base

#all_errors, attribute, #initialize, #to_a, #type

Constructor Details

This class inherits a constructor from Serverkit::Resources::Base

Instance Method Details

#applyObject



8
9
10
# File 'lib/serverkit/resources/service.rb', line 8

def apply
  run_command_from_identifier(:start, name)
end

#checkObject



12
13
14
# File 'lib/serverkit/resources/service.rb', line 12

def check
  check_command_from_identifier(:check_service_is_running, name)
end