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
72 73 74 |
# File 'lib/github/command.rb', line 72 def command @command.join(' ') end |
#error? ⇒ Boolean
76 77 78 |
# File 'lib/github/command.rb', line 76 def error? !!@error end |
#out? ⇒ Boolean
80 81 82 |
# File 'lib/github/command.rb', line 80 def out? !!@out end |