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.
81 82 83 |
# File 'lib/github/command.rb', line 81 def initialize(*command) @command = command end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
78 79 80 |
# File 'lib/github/command.rb', line 78 def error @error end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
79 80 81 |
# File 'lib/github/command.rb', line 79 def out @out end |
Instance Method Details
#command ⇒ Object
98 99 100 |
# File 'lib/github/command.rb', line 98 def command @command.join(' ') end |
#error? ⇒ Boolean
102 103 104 |
# File 'lib/github/command.rb', line 102 def error? !!@error end |
#out? ⇒ Boolean
106 107 108 |
# File 'lib/github/command.rb', line 106 def out? !!@out end |