Class: Appextensioninstaller::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/appextensioninstaller.rb

Instance Method Summary collapse

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

#cmdObject



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

#runObject



28
29
30
# File 'lib/appextensioninstaller.rb', line 28

def run
  @cmd.nil? ? "" : `#{@cmd}`
end