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.3262.24.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3232.24.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3232.14.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3262.4.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3262.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3232.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3215.4.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3215.3.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3215.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3146.10.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3213.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3202.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3200.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3146.9.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3197.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3196.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3146.8.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3192.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3146.7.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3191.0 lib/bosh/stemcell/archive_handler.rb