Class: CRB_Blast::Cmd
- Inherits:
-
Object
- Object
- CRB_Blast::Cmd
- Defined in:
- lib/crb-blast/cmd.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#status ⇒ Object
Returns the value of attribute status.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(cmd) ⇒ Cmd
constructor
A new instance of Cmd.
- #run ⇒ Object
Constructor Details
#initialize(cmd) ⇒ Cmd
Returns a new instance of Cmd.
9 10 11 |
# File 'lib/crb-blast/cmd.rb', line 9 def initialize cmd @cmd = cmd end |
Instance Attribute Details
#cmd ⇒ Object
Returns the value of attribute cmd.
7 8 9 |
# File 'lib/crb-blast/cmd.rb', line 7 def cmd @cmd end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/crb-blast/cmd.rb', line 7 def status @status end |
#stderr ⇒ Object
Returns the value of attribute stderr.
7 8 9 |
# File 'lib/crb-blast/cmd.rb', line 7 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout.
7 8 9 |
# File 'lib/crb-blast/cmd.rb', line 7 def stdout @stdout end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'lib/crb-blast/cmd.rb', line 13 def run @stdout, @stderr, @status = Open3.capture3 @cmd end |