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.3155.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3153.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3149.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3148.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3147.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3146.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3145.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3144.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3143.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3142.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3140.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3139.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3138.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3137.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3130.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3126.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3125.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3123.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3122.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3120.0 lib/bosh/stemcell/archive_handler.rb