Class: Gem::Tasks::Build

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/tasks/build.rb,
lib/rubygems/tasks/build/gem.rb,
lib/rubygems/tasks/build/tar.rb,
lib/rubygems/tasks/build/zip.rb,
lib/rubygems/tasks/build/task.rb

Overview

Collection of all build:* tasks.

Defined Under Namespace

Classes: Gem, Tar, Task, Zip

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gem: true, tar: nil, zip: nil) ⇒ Build

Initializes the build: tasks.

Parameters:

  • gem (Boolean) (defaults to: true)

    Enables or disables the build:gem task.

  • tar (Boolean) (defaults to: nil)

    Enables or disables the build:tar task.

  • zip (Boolean) (defaults to: nil)

    Enables or disables the build:zip task.

Since:

  • 0.3.0



53
54
55
56
57
# File 'lib/rubygems/tasks/build.rb', line 53

def initialize(gem: true, tar: nil, zip: nil)
  @gem = Gem.new if gem
  @tar = Tar.new if tar
  @zip = Zip.new if zip
end

Instance Attribute Details

#gemGem? (readonly)

The build:gem task.

Returns:

Since:

  • 0.3.0



23
24
25
# File 'lib/rubygems/tasks/build.rb', line 23

def gem
  @gem
end

#tarTar? (readonly)

The build:tar task.

Returns:

Since:

  • 0.3.0



30
31
32
# File 'lib/rubygems/tasks/build.rb', line 30

def tar
  @tar
end

#zipZip? (readonly)

The build:zip task.

Returns:

Since:

  • 0.3.0



37
38
39
# File 'lib/rubygems/tasks/build.rb', line 37

def zip
  @zip
end