Class: Cfruby::FileOps::FileCommand
- Inherits:
-
Object
- Object
- Cfruby::FileOps::FileCommand
- Defined in:
- lib/libcfruby/fileops.rb
Overview
Interface description for FileCommand interface. Should be implemented on a case by case basis and included in the get_protocol method.
Instance Method Summary collapse
-
#copy(filename, newfilename, options = {}) ⇒ Object
Copies
filename
tonewfilename
. -
#move(filename, newfilename, options = {}) ⇒ Object
Moves
filename
tonewfilename
.
Instance Method Details
#copy(filename, newfilename, options = {}) ⇒ Object
Copies filename
to newfilename
. Options may be set to one or more of the following:
- <tt>:preserve
-
true/false - preserve permissions
- <tt>:noop
-
true/false - don’t actually do anything
- <tt>:mode
-
permissions - set the permissions of the copied file (uses chmod)
66 67 |
# File 'lib/libcfruby/fileops.rb', line 66 def copy(filename, newfilename, ={}) end |
#move(filename, newfilename, options = {}) ⇒ Object
Moves filename
to newfilename
. Options may be set to one or more of the following:
:preserve
-
true/false - preserve permissions
:noop
-
true/false - don’t actually do anything
:mode
-
permissions - set the permissions of the copied file (uses chmod)
58 59 |
# File 'lib/libcfruby/fileops.rb', line 58 def move(filename, newfilename, ={}) end |