Class: GitHub::Command::Shell
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
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.
59 60 61 |
# File 'lib/github/command.rb', line 59 def initialize(*command) @command = command end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
56 57 58 |
# File 'lib/github/command.rb', line 56 def error @error end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
57 58 59 |
# File 'lib/github/command.rb', line 57 def out @out end |
Instance Method Details
#command ⇒ Object
76 77 78 |
# File 'lib/github/command.rb', line 76 def command @command.join(' ') end |
#error? ⇒ Boolean
80 81 82 |
# File 'lib/github/command.rb', line 80 def error? !!@error end |
#out? ⇒ Boolean
84 85 86 |
# File 'lib/github/command.rb', line 84 def out? !!@out end |