Sha256: 8c19ac73655babf0b64ea1df74d3b2ad7f0c47f337453c7c15bfdf0ba83113dd

Contents?: true

Size: 417 Bytes

Versions: 65

Compression:

Stored size: 417 Bytes

Contents

require 'pe_build/unpack'
require 'fileutils'

class PEBuild::Unpack::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

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
vagrant-pe_build-0.19.2 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.19.1 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.19.0 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.18.2 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.18.1 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.18.0 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.14 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.13 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.12 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.11 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.10 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.9 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.8 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.7 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.6 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.5 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.4 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.3 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.2 lib/pe_build/unpack/copy.rb
vagrant-pe_build-0.17.1 lib/pe_build/unpack/copy.rb