Parent

Box::Gz

Gzipped Tarball Package

Public Class Methods

clio_setup(usage) click to toggle source
# File lib/box/packs/gz.rb, line 10
def self.clio_setup(usage)
  command('gz') do
    desc 'generate tarball package'
  end
end
new(location, options) click to toggle source
# File lib/box/packs/gz.rb, line 16
def initialize(location, options)
  super
  # ...
end

Public Instance Methods

extension() click to toggle source
# File lib/box/packs/gz.rb, line 21
def extension ; '.tar.gz' ; end
package_build() click to toggle source

Create a tar gzip source package.

# File lib/box/packs/gz.rb, line 25
def package_build
  #unless package_needed? or force?
  #  report_package_already_built(package_file)
  #  return
  #end

  status("tar -cxf #{package_file}")

  return if dryrun?

  file = nil

  stage(extension)

  cd(temp_folder) do
    rm(package_file) if package_file.exist?
    file = tar_gzip(stage_name)
  end

  #file = transfer(file, pack_folder)
  #report_package_built(file)

  return file
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.