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.
56 57 58 |
# File 'lib/github/command.rb', line 56 def initialize(*command) @command = command end |
Instance Method Details
#command ⇒ Object
74 75 76 |
# File 'lib/github/command.rb', line 74 def command @command.join(' ') end |
#error? ⇒ Boolean
78 79 80 |
# File 'lib/github/command.rb', line 78 def error? !!@error end |
#out? ⇒ Boolean
82 83 84 |
# File 'lib/github/command.rb', line 82 def out? !!@out end |