Class: GitHub::Command::Shell
Instance Method Summary collapse
- #command ⇒ Object
- #error? ⇒ Boolean
-
#initialize(*command) ⇒ Shell
constructor
A new instance of Shell.
- #out? ⇒ Boolean
- #run ⇒ Object
Constructor Details
#initialize(*command) ⇒ Shell
Returns a new instance of Shell.
54 55 56 |
# File 'lib/github/command.rb', line 54 def initialize(*command) @command = command end |
Instance Method Details
#command ⇒ Object
69 70 71 |
# File 'lib/github/command.rb', line 69 def command @command.join(' ') end |
#error? ⇒ Boolean
73 74 75 |
# File 'lib/github/command.rb', line 73 def error? !!@error end |
#out? ⇒ Boolean
77 78 79 |
# File 'lib/github/command.rb', line 77 def out? !!@out end |