class Gem::Tasks::Release
The ‘release` task.
def define
Defines the `release` task.
def define @project.gemspecs.each_key do |name| task :release => [ "build:#{name}", 'scm:tag', 'scm:push', "push:#{name}", "sign:#{name}" ].select { |name| task?(name) } end desc "Performs a release" task :release => [ :build, 'scm:tag', 'scm:push', :push, :sign ].select { |name| task?(name) } end
def initialize(options={})
-
options
(Hash
) --
def initialize(options={}) super() yield self if block_given? define end