Module: Deployment::Methods::Fileops

Defined in:
lib/depengine/dsl/fileops.rb

Instance Method Summary collapse

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, options={})
  Processor.chmod(File.join($recipe_config[:deploy_home], file), \
                  mode, options)
end

#copy(source, target, options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/depengine/dsl/fileops.rb', line 4

def copy(source, target, options={})
  Processor.copy(File.join($recipe_config[:deploy_home], source), \
                 File.join($recipe_config[:deploy_home], target), \
                 options)
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


23
24
25
# File 'lib/depengine/dsl/fileops.rb', line 23

def mklink(source, target)
  Processor.mklink(source, File.join($recipe_config[:deploy_home], target))
end

#remove(file) ⇒ Object



19
20
21
# File 'lib/depengine/dsl/fileops.rb', line 19

def remove(file)
  Processor.remove(File.join($recipe_config[:deploy_home], file))
end