Sha256: 244a003825ee9e631f7f4b7272439b0b16b37bb90e9dd75de6d131dd267de627

Contents?: true

Size: 1 KB

Versions: 13

Compression:

Stored size: 1 KB

Contents

module Deployment
  module Methods
    module Fileops
      def copy(source, target, options={})
        Processor.copy(File.join($recipe_config[:deploy_home], source), \
                       File.join($recipe_config[:deploy_home], target), \
                       options)
      end

      def mkdir(directory)
        Processor.mkdir(File.join($recipe_config[:deploy_home], directory))
      end

      def chmod(file, mode, options={})
        Processor.chmod(File.join($recipe_config[:deploy_home], file), \
                        mode, options)
      end

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

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

      def check_filelist(list, target)
        Processor.check_filelist(File.join($recipe_config[:deploy_home], list), \
                                 File.join($recipe_config[:deploy_home], target))
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
depengine-3.0.12 lib/depengine/dsl/fileops.rb
depengine-3.0.11 lib/depengine/dsl/fileops.rb
depengine-3.0.10 lib/depengine/dsl/fileops.rb
depengine-3.0.9 lib/depengine/dsl/fileops.rb
depengine-3.0.8 lib/depengine/dsl/fileops.rb
depengine-3.0.7 lib/depengine/dsl/fileops.rb
depengine-3.0.6 lib/depengine/dsl/fileops.rb
depengine-3.0.5 lib/depengine/dsl/fileops.rb
depengine-3.0.4 lib/depengine/dsl/fileops.rb
depengine-3.0.3 lib/depengine/dsl/fileops.rb
depengine-3.0.2 lib/depengine/dsl/fileops.rb
depengine-3.0.1 lib/depengine/dsl/fileops.rb
depengine-3.0.0 lib/depengine/dsl/fileops.rb