Module: Deployment::Methods::Fileops
- Defined in:
- lib/depengine/dsl/fileops.rb
Instance Method Summary collapse
- #check_filelist(list, target) ⇒ Object
- #chmod(file, mode, options = {}) ⇒ Object
- #copy(source, target, options = {}) ⇒ Object
- #mkdir(directory) ⇒ Object
- #mklink(source, target) ⇒ Object
- #remove(file) ⇒ Object
Instance Method Details
#check_filelist(list, target) ⇒ Object
27 28 29 30 |
# File 'lib/depengine/dsl/fileops.rb', line 27 def check_filelist(list, target) Processor.check_filelist(File.join($recipe_config[:deploy_home], list), \ File.join($recipe_config[:deploy_home], target)) end |
#chmod(file, mode, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/depengine/dsl/fileops.rb', line 14 def chmod(file, mode, ={}) Processor.chmod(File.join($recipe_config[:deploy_home], file), \ mode, ) end |
#copy(source, target, options = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/depengine/dsl/fileops.rb', line 4 def copy(source, target, ={}) Processor.copy(File.join($recipe_config[:deploy_home], source), \ File.join($recipe_config[:deploy_home], target), \ ) end |
#mkdir(directory) ⇒ Object
10 11 12 |
# File 'lib/depengine/dsl/fileops.rb', line 10 def mkdir(directory) Processor.mkdir(File.join($recipe_config[:deploy_home], directory)) end |