Class: Mount::Command::Base
- Inherits:
-
Object
- Object
- Mount::Command::Base
- Defined in:
- lib/mount/command/base.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#escape(target) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mount/command/base.rb', line 6 def escape(target) str = case target when Regexp target.source else target.to_s end Shellwords.shellescape(str) end |
#install(package, version = nil) ⇒ Object
17 18 19 |
# File 'lib/mount/command/base.rb', line 17 def install(package, version=nil) raise NotImplementedError.new end |