Method: Mount::Command::Base#escape
- Defined in:
- lib/mount/command/base.rb
#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 |