Class: Gem::Tasks::SCM
- Inherits:
-
Object
- Object
- Gem::Tasks::SCM
- 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
Instance Attribute Summary collapse
-
#push ⇒ Push?
readonly
The scm:push task.
-
#status ⇒ Status?
readonly
The scm:status task.
-
#tag ⇒ Tag?
readonly
The scm:tag task.
Instance Method Summary collapse
-
#initialize(status: true, tag: true, push: true) ⇒ SCM
constructor
Initializes the
scm:*tasks.
Constructor Details
#initialize(status: true, tag: true, push: true) ⇒ SCM
Initializes the scm:* tasks.
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
#push ⇒ Push? (readonly)
The scm:push task.
30 31 32 |
# File 'lib/rubygems/tasks/scm.rb', line 30 def push @push end |
#status ⇒ Status? (readonly)
The scm:status task.
16 17 18 |
# File 'lib/rubygems/tasks/scm.rb', line 16 def status @status end |