Class: Appextensioninstaller::Shell
- Inherits:
-
Object
- Object
- Appextensioninstaller::Shell
- Defined in:
- lib/appextensioninstaller.rb
Instance Method Summary collapse
- #cmd ⇒ Object
- #cmd=(cmd) ⇒ Object
-
#initialize(cmd) ⇒ Shell
constructor
A new instance of Shell.
- #run ⇒ Object
Constructor Details
#initialize(cmd) ⇒ Shell
Returns a new instance of Shell.
16 17 18 |
# File 'lib/appextensioninstaller.rb', line 16 def initialize(cmd) @cmd = cmd end |
Instance Method Details
#cmd ⇒ Object
20 21 22 |
# File 'lib/appextensioninstaller.rb', line 20 def cmd @cmd end |
#cmd=(cmd) ⇒ Object
24 25 26 |
# File 'lib/appextensioninstaller.rb', line 24 def cmd=(cmd) @cmd = cmd end |
#run ⇒ Object
28 29 30 |
# File 'lib/appextensioninstaller.rb', line 28 def run @cmd.nil? ? "" : `#{@cmd}` end |