Class: Gem::Tasks
- Inherits:
-
Object
- Object
- Gem::Tasks
- Defined in:
- lib/rubygems/tasks.rb,
lib/rubygems/tasks/push.rb,
lib/rubygems/tasks/task.rb,
lib/rubygems/tasks/console.rb,
lib/rubygems/tasks/install.rb,
lib/rubygems/tasks/project.rb,
lib/rubygems/tasks/release.rb,
lib/rubygems/tasks/scm/tag.rb,
lib/rubygems/tasks/printing.rb,
lib/rubygems/tasks/scm/push.rb,
lib/rubygems/tasks/sign/pgp.rb,
lib/rubygems/tasks/build/gem.rb,
lib/rubygems/tasks/build/tar.rb,
lib/rubygems/tasks/build/zip.rb,
lib/rubygems/tasks/sign/task.rb,
lib/rubygems/tasks/build/task.rb,
lib/rubygems/tasks/scm/status.rb,
lib/rubygems/tasks/sign/checksum.rb
Overview
Defined Under Namespace
Modules: Build, Printing, SCM, Sign Classes: Console, Install, Project, Push, Release, Task
Instance Attribute Summary collapse
-
#build ⇒ OpenStruct
readonly
The
build
tasks. -
#console ⇒ Object
readonly
The console task.
-
#install ⇒ Object
readonly
The install task.
-
#push ⇒ Object
readonly
The push task.
-
#release ⇒ Object
readonly
The release task.
-
#scm ⇒ OpenStruct
readonly
The
scm
tasks. -
#sign ⇒ OpenStruct
readonly
The
sign
tasks.
Instance Method Summary collapse
-
#initialize(options = {}) {|tasks| ... } ⇒ Tasks
constructor
Initializes the project tasks.
Constructor Details
#initialize(options = {}) {|tasks| ... } ⇒ Tasks
Initializes the project tasks.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/rubygems/tasks.rb', line 112 def initialize(={}) = .fetch(:build,{}) = .fetch(:scm,{}) = .fetch(:sign,{}) @scm = OpenStruct.new @build = OpenStruct.new @sign = OpenStruct.new if @build.gem = (Build::Gem.new if .fetch(:gem,true)) @build.tar = (Build::Tar.new if [:tar]) @build.zip = (Build::Zip.new if [:zip]) end if @scm.status = (SCM::Status.new if .fetch(:status,true)) @scm.tag = (SCM::Tag.new if .fetch(:tag,true)) @scm.push = (SCM::Push.new if .fetch(:push,true)) end if @sign.checksum = (Sign::Checksum.new if [:checksum]) @sign.pgp = (Sign::PGP.new if [:pgp]) end @console = (Console.new if .fetch(:console,true)) @install = (Install.new if .fetch(:install,true)) @push = (Push.new if .fetch(:push,true)) @release = (Release.new if .fetch(:release,true)) yield self if block_given? end |
Instance Attribute Details
#build ⇒ OpenStruct (readonly)
The build
tasks.
37 38 39 |
# File 'lib/rubygems/tasks.rb', line 37 def build @build end |
#console ⇒ Object (readonly)
The console task.
56 57 58 |
# File 'lib/rubygems/tasks.rb', line 56 def console @console end |
#install ⇒ Object (readonly)
The install task.
59 60 61 |
# File 'lib/rubygems/tasks.rb', line 59 def install @install end |
#push ⇒ Object (readonly)
The push task.
62 63 64 |
# File 'lib/rubygems/tasks.rb', line 62 def push @push end |
#release ⇒ Object (readonly)
The release task.
65 66 67 |
# File 'lib/rubygems/tasks.rb', line 65 def release @release end |
#scm ⇒ OpenStruct (readonly)
The scm
tasks.
45 46 47 |
# File 'lib/rubygems/tasks.rb', line 45 def scm @scm end |
#sign ⇒ OpenStruct (readonly)
The sign
tasks.
53 54 55 |
# File 'lib/rubygems/tasks.rb', line 53 def sign @sign end |