Class: PmdTester::Cmd
- Inherits:
-
Object
- Object
- PmdTester::Cmd
- Extended by:
- PmdTester
- Defined in:
- lib/pmdtester/cmd.rb
Overview
Containing the common method for executing shell command
Constant Summary
Constants included from PmdTester
BASE, PATCH, PR_NUM_ENV_VAR, VERSION
Class Method Summary collapse
Methods included from PmdTester
Class Method Details
.execute(cmd) ⇒ Object
9 10 11 12 13 |
# File 'lib/pmdtester/cmd.rb', line 9 def self.execute(cmd) stdout, _stderr, _status = internal_execute(cmd) stdout&.chomp! stdout end |
.stderr_of(cmd) ⇒ Object
15 16 17 18 |
# File 'lib/pmdtester/cmd.rb', line 15 def self.stderr_of(cmd) _stdout, stderr, _status = internal_execute(cmd) stderr end |