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.3115.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3112.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3104.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3100.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3098.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3094.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3093.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3091.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3088.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3087.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3074.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3072.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3071.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3069.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3068.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3063.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3062.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3058.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3056.0 lib/bosh/stemcell/archive_handler.rb
bosh-stemcell-1.3050.0 lib/bosh/stemcell/archive_handler.rb