Sha256: 88ab1db9bac86e85c84da3c38e16ad4d4e7e9d230b30650de67a50c51a4bb1cd

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

require 'fileutils'

module PEBuild
module Unpack
class Copy

  # @param src [String]
  # @param dst [String]
  def initialize(src, dst)
    @src, @dst = src, dst
  end

  def unpack
    FileUtils.cp(@src, creates)
  end

  # @return [String] The file/dir that will be created as a result of unpack
  def creates
    basename = File.basename(@src)
    deploy_path = File.join(@dst, basename)
  end

end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-pe_build-0.6.0 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.5.0 lib/pe_build/unpack/copy.rb