Class: Gem::Tasks::Build::Zip
- Defined in:
- lib/rubygems/tasks/build/zip.rb
Overview
The build:zip
task.
Constant Summary
Constants included from Printing
Printing::ANSI_BRIGHT, Printing::ANSI_CLEAR, Printing::ANSI_GREEN, Printing::ANSI_RED, Printing::ANSI_YELLOW, Printing::DEBUG_PREFIX, Printing::ERROR_PREFIX, Printing::STATUS_PREFIX
Instance Attribute Summary
Attributes inherited from Task
Instance Method Summary collapse
-
#build(path, gemspec) ⇒ Object
Builds the
.zip
archive. -
#define ⇒ Object
Defines the
build:zip
task. -
#initialize(options = {}) {|_self| ... } ⇒ Zip
constructor
Initializes the
build:zip
task.
Methods inherited from Task
#bundle, #gem, #gemspec_tasks, #invoke, #namespaced_tasks, #run, #task?
Methods included from Printing
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Zip
Initializes the build:zip
task.
17 18 19 20 21 22 |
# File 'lib/rubygems/tasks/build/zip.rb', line 17 def initialize(={}) super() yield self if block_given? define end |
Instance Method Details
#build(path, gemspec) ⇒ Object
Builds the .zip
archive.
42 43 44 |
# File 'lib/rubygems/tasks/build/zip.rb', line 42 def build(path,gemspec) run 'zip', '-q', path, *gemspec.files end |
#define ⇒ Object
Defines the build:zip
task.
27 28 29 |
# File 'lib/rubygems/tasks/build/zip.rb', line 27 def define build_task :zip end |