Class: Shred::Commands::Services

Inherits:
Base
  • Object
show all
Defined in:
lib/shred/commands/services.rb

Defined Under Namespace

Classes: LaunchctlService, Service, ShellCommandService

Instance Attribute Summary collapse

Attributes inherited from Base

#command_config, #command_name, #console

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Shred::Commands::Base

Instance Attribute Details

#supported_servicesObject (readonly)

Returns the value of attribute supported_services.



6
7
8
# File 'lib/shred/commands/services.rb', line 6

def supported_services
  @supported_services
end

Instance Method Details

#start(*services) ⇒ Object



75
76
77
# File 'lib/shred/commands/services.rb', line 75

def start(*services)
  invoke_for_services(:start, *services)
end

#stop(*services) ⇒ Object



87
88
89
# File 'lib/shred/commands/services.rb', line 87

def stop(*services)
  invoke_for_services(:stop, *services)
end