class Gem::Tasks::Build::Tar


The ‘build:tar` task.

def build(path,gemspec)

Other tags:
    Api: - semipublic

Parameters:
  • gemspec (Gem::Specification) --
  • path (String) --
def build(path,gemspec)
  run 'tar', 'czf', path, *gemspec.files
end

def define


Defines the `build:tar` task.
def define
  build_task :tar, 'tar.gz'
end

def initialize(options={})

Parameters:
  • options (Hash) --
def initialize(options={})
  super()
  yield self if block_given?
  define
end