Sha256: 6329b837c89abc7550287b5bd5444d422988ef99e1ba16d6fd41e81ac6967036

Contents?: true

Size: 219 Bytes

Versions: 10

Compression:

Stored size: 219 Bytes

Contents

module ProjectdxPipeline
  module File
    def copy(src, dest)
      if ::File.exist?(dest)
        FileUtils.cp(dest, "#{dest}.bak")
      end
      FileUtils.cp(src, dest)
    end

    module_function :copy
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
projectdx_pipeline-1.3.6 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.3.5 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.3.4 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.3.0 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.2.2 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.2.1 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.2.0 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.1.0 lib/projectdx_pipeline/file.rb
projectdx_pipeline-1.0.0 lib/projectdx_pipeline/file.rb
projectdx_pipeline-0.2.0 lib/projectdx_pipeline/file.rb