Module: Aef::FileTransferMatchers
- Defined in:
- lib/file_transfer_matchers/file_transfer_matchers.rb
Overview
Copyright 2009 Alexander E. Fischer <[email protected]>
This file is part of FileTransferMatchers.
FileTransferMatchers is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Constant Summary collapse
- VERSION =
'1.0.0'
Instance Method Summary collapse
- #copy(from, options = {}, &block) ⇒ Object
- #delete(file, &block) ⇒ Object
- #move(from, options = {}, &block) ⇒ Object
Instance Method Details
#copy(from, options = {}, &block) ⇒ Object
26 27 28 29 |
# File 'lib/file_transfer_matchers/file_transfer_matchers.rb', line 26 def copy(from, = {}, &block) [:copy_mode] = true Aef::FileTransferMatcher.new(from, , &block) end |
#delete(file, &block) ⇒ Object
31 32 33 |
# File 'lib/file_transfer_matchers/file_transfer_matchers.rb', line 31 def delete(file, &block) Aef::FileTransferMatcher.new(file, :copy_mode => false, &block) end |
#move(from, options = {}, &block) ⇒ Object
21 22 23 24 |
# File 'lib/file_transfer_matchers/file_transfer_matchers.rb', line 21 def move(from, = {}, &block) [:copy_mode] = false Aef::FileTransferMatcher.new(from, , &block) end |