Permalink
Browse files

Small cleanup of the release task

  • Loading branch information...
1 parent df5fe4d commit c3dd1238c50424231bac682f08b43fc4a318a148 @carllerche carllerche committed Nov 17, 2010
Showing with 7 additions and 9 deletions.
  1. +1 −1 Rakefile
  2. +6 −8 tasks/release.rb
View
@@ -12,7 +12,7 @@ desc "Build gem files for all projects"
task :build => "all:build"
desc "Release all gems to gemcutter and create a tag"
-task :release => ["all:release", "git:tag"]
+task :release => "all:release"
# RDoc skips some files in the Rails tree due to its binary? predicate. This is a quick
# hack for edge docs, until we decide which is the correct way to address this issue.
View
@@ -61,7 +61,11 @@
end
end
-namespace :release do
+namespace :all do
+ task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build']
+ task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install']
+ task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ['rails:push']
+
task :ensure_clean_state do
unless `git status -s | grep -v RAILS_VERSION`.strip.empty?
abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed"
@@ -88,11 +92,5 @@
sh "git tag #{tag}"
end
- task :full => %w(ensure_clean_state all:build commit tag all:push)
-end
-
-namespace :all do
- task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build']
- task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install']
- task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ['rails:push']
+ task :release => %w(ensure_clean_state build commit tag push)
end

0 comments on commit c3dd123

Please sign in to comment.