Sha256: cad1b661cafdf96a8cbdf2f29dd559f0b6dc8b3f6c50e13fb6d61d48e088e7e2

Contents?: true

Size: 248 Bytes

Versions: 233

Compression:

Stored size: 248 Bytes

Contents

module Bosh::Stemcell
  class ArchiveHandler
    def initialize
      @shell = Bosh::Core::Shell.new
    end

    def compress(directory, archive_filename)
      @shell.run("sudo tar -cz -f #{archive_filename} -C #{directory} .")
    end
  end
end

Version data entries

233 entries across 233 versions & 1 rubygems

Version Path
bosh-stemcell-1.3048.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3042.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3039.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3033.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3031.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3030.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3029.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3026.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3025.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3022.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3016.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3012.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3010.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3008.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3004.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3003.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3001.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3000.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.2999.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.2992.0 lib/bosh/stemcell/archive_handler.rb