Module: AptControl::Exec::Helpers
- Included in:
- AptSite
- Defined in:
- lib/apt_control/exec.rb
Instance Method Summary collapse
Instance Method Details
#exec(command, options = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/apt_control/exec.rb', line 24 def exec(command, ={}) # use the options we were constructed with if they exist if respond_to?(:options) [:quiet] = !self..verbose? unless .has_key? :quiet end if respond_to? :exec_name [:name] = exec_name unless .has_key? :name end AptControl::Exec.exec(command, ) end |