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.
98 99 100 |
# File 'lib/github/command.rb', line 98 def initialize(*command) @command = command end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
95 96 97 |
# File 'lib/github/command.rb', line 95 def error @error end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
96 97 98 |
# File 'lib/github/command.rb', line 96 def out @out end |
Instance Method Details
#command ⇒ Object
115 116 117 |
# File 'lib/github/command.rb', line 115 def command @command.join(' ') end |
#error? ⇒ Boolean
119 120 121 |
# File 'lib/github/command.rb', line 119 def error? !!@error end |
#out? ⇒ Boolean
123 124 125 |
# File 'lib/github/command.rb', line 123 def out? !!@out end |