Class: Synco::Command::Mount
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Synco::Command::Mount
- Defined in:
- lib/synco/command/disk.rb
Instance Method Summary collapse
Instance Method Details
#invoke(parent) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/synco/command/disk.rb', line 37 def invoke(parent) # We may not have permission to make this directory, but we should still try: FileUtils.mkpath(@path) rescue nil Disk.mount(@path, @name) end |