Skip to content

Commit

Permalink
Use echoe to manage the Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Jun 14, 2008
1 parent 1cb79a2 commit 93153ef
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 61 deletions.
21 changes: 9 additions & 12 deletions ChangeLog → CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
*unreleased*

* Don't clobber pre-existing stage definitions on multistage:prepare [Jamis Buck]
== unreleased

* Don't clobber pre-existing stage definitions on
multistage:prepare [Jamis Buck]
* Made multistage module autodetect stages. [Jamis Buck]


*1.2.0* (July 6, 2007)
== 1.2.0 (July 6, 2007)

* Added multistage as a packaged staging option. [Jamis Buck]


*1.1.1* (May 12, 2007)
== 1.1.1 (May 12, 2007)

* Tweak to work with Capistrano 2 [Jamis Buck]


*1.1.0* (September 14, 2006)
== 1.1.0 (September 14, 2006)

* Add uptime task [Jamis Buck]

* Fix padding on long machine names [Michael Schoen]

* Fix matching of machine names [Michael Schoen]

* Fix matching of load averages [Michael Schoen]


*1.0.1* (March 6, 2006)
== 1.0.1 (March 6, 2006)

* Rename capistrano-ext

* Put request monitor script in user's home directory, instead of /tmp, to accomodate multiple users
* Put request monitor script in user's home directory, instead of /tmp,
to accomodate multiple users
9 changes: 9 additions & 0 deletions Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CHANGELOG.rdoc
lib/capistrano/ext/assets/request-counter.rb
lib/capistrano/ext/monitor.rb
lib/capistrano/ext/multistage.rb
lib/capistrano/ext/version.rb
MIT-LICENSE
README
setup.rb
Manifest
45 changes: 19 additions & 26 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
begin
require 'echoe'
rescue LoadError
abort "You'll need to have `echoe' installed to use capistrano-ext's Rakefile"
end

require "./lib/capistrano/ext/version"

PKG_NAME = "capistrano-ext"
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = Capistrano::Ext::Version::STRING + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
version = Capistrano::Ext::Version::STRING.dup
if ENV['SNAPSHOT'].to_i == 1
version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end

GEM_SPEC = eval(File.read("#{File.dirname(__FILE__)}/#{PKG_NAME}.gemspec"))
Echoe.new('capistrano-ext', version) do |p|
p.changelog = "CHANGELOG.rdoc"

Rake::GemPackageTask.new(GEM_SPEC) do |p|
p.gem_spec = GEM_SPEC
p.need_tar = true
p.need_zip = true
p.package_files.include 'README', 'MIT-LICENSE', 'setup.rb', 'ChangeLog'
end
p.author = "Jamis Buck"
p.email = "jamis@jamisbuck.org"
p.summary = "Useful task libraries and methods for Capistrano"
p.url = "http://www.capify.org"

desc "Build the RDoc API documentation"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = "doc"
rdoc.title = "Capistrano Extensions -- A collection of tasks and methods for capistrano"
rdoc.options << '--line-numbers --inline-source --main README'
rdoc.rdoc_files.include 'README'
rdoc.rdoc_files.include 'lib/**/*.rb'
rdoc.template = "jamis"
end
p.need_zip = true

p.dependencies = ["capistrano >=1.0.0"]
end
23 changes: 0 additions & 23 deletions capistrano-ext.gemspec

This file was deleted.

0 comments on commit 93153ef

Please sign in to comment.