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.
89 90 91 |
# File 'lib/github/command.rb', line 89 def initialize(*command) @command = command end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
86 87 88 |
# File 'lib/github/command.rb', line 86 def error @error end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
87 88 89 |
# File 'lib/github/command.rb', line 87 def out @out end |
Instance Method Details
#command ⇒ Object
106 107 108 |
# File 'lib/github/command.rb', line 106 def command @command.join(' ') end |
#error? ⇒ Boolean
110 111 112 |
# File 'lib/github/command.rb', line 110 def error? !!@error end |
#out? ⇒ Boolean
114 115 116 |
# File 'lib/github/command.rb', line 114 def out? !!@out end |