class Shred::Commands::Services::ShellCommandService

Attributes

start_command_lines[R]
stop_command_lines[R]

Public Class Methods

new(sym: nil, start_command_lines: nil, stop_command_lines: nil) click to toggle source
Calls superclass method Shred::Commands::Services::Service::new
# File lib/shred/commands/services.rb, line 57
def initialize(sym: nil, start_command_lines: nil, stop_command_lines: nil)
  super(sym: sym)
  @start_command_lines = start_command_lines
  @stop_command_lines = stop_command_lines
end

Public Instance Methods

start(ctx) click to toggle source
# File lib/shred/commands/services.rb, line 63
def start(ctx)
  super(ctx, start_command_lines)
end
stop(ctx) click to toggle source
Calls superclass method Shred::Commands::Services::Service#stop
# File lib/shred/commands/services.rb, line 67
def stop(ctx)
  super(ctx, stop_command_lines)
end