Class: Cfruby::FileOps::FileCommand

Inherits:
Object
  • Object
show all
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

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, options={})
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, options={})
end