Class: Gem::Tasks::SCM

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/tasks/scm.rb,
lib/rubygems/tasks/scm/tag.rb,
lib/rubygems/tasks/scm/push.rb,
lib/rubygems/tasks/scm/status.rb

Defined Under Namespace

Classes: Push, Status, Tag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: true, tag: true, push: true) ⇒ SCM

Initializes the scm:* tasks.

Parameters:

  • status (Boolean) (defaults to: true)

    Enables or disables the scm:status task.

  • tag (Boolean) (defaults to: true)

    Enables or disables the scm:tag task.

  • push (Boolean) (defaults to: true)

    Enables or disables the scm:push task.



44
45
46
47
48
# File 'lib/rubygems/tasks/scm.rb', line 44

def initialize(status: true, tag: true, push: true)
  @status = (Status.new if status)
  @tag    = (Tag.new    if tag)
  @push   = (Push.new   if push)
end

Instance Attribute Details

#pushPush? (readonly)

The scm:push task.

Returns:

Since:

  • 0.3.0



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

def push
  @push
end

#statusStatus? (readonly)

The scm:status task.

Returns:

Since:

  • 0.3.0



16
17
18
# File 'lib/rubygems/tasks/scm.rb', line 16

def status
  @status
end

#tagTag? (readonly)

The scm:tag task.

Returns:

Since:

  • 0.3.0



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

def tag
  @tag
end