Class: Shred::Commands::Test

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

Instance Attribute Summary

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 Method Details

#allObject



7
8
9
10
# File 'lib/shred/commands/test.rb', line 7

def all
  invoke(:server) if cfg('server', required: false)
  invoke(:client) if cfg('client', required: false)
end

#clientObject



18
19
20
# File 'lib/shred/commands/test.rb', line 18

def client
  run_shell_command(ShellCommand.new(command_lines: cfg('client')))
end

#serverObject



13
14
15
# File 'lib/shred/commands/test.rb', line 13

def server
  run_shell_command(ShellCommand.new(command_lines: cfg('server')))
end