forked from thoughtworks/cruisecontrol.rb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rake package task now builds a gem with a Cruise executable that runs…
… the app on *nix. Some Rakefile cleanup.
- Loading branch information
Showing
8 changed files
with
45 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,11 +1,36 @@ | |||
Rake::PackageTask.new("cruisecontrolrb", CruiseControl::VERSION::STRING) do |p| | load Rails.root.join("cruisecontrolrb.gemspec") | ||
p.need_tar = true |
|
||
p.need_zip = true | task :package => ["package:gem"] | ||
|
|
||
p.package_files.include("**/**") | namespace :package do | ||
|
def gem_file | ||
|
if gem_spec.platform == Gem::Platform::RUBY | ||
%w(log/** tmp/** pkg/** vendor/jruby/** vendor/cache/** vendor/java/** server_jar/** vendor/**/cache/**).each do |f| | "#{gem_spec.full_name}.gem" | ||
p.package_files.exclude(f) | else | ||
"#{gem_spec.full_name}-#{gem_spec.platform}.gem" | |||
end | |||
end | |||
|
|||
def package_dir | |||
"pkg" | |||
end | |||
|
|||
def gem_spec | |||
GEMSPEC | |||
end | |||
|
|||
task :gem => :prepare do | |||
Gem::Builder.new(gem_spec).build | |||
verbose(true) { mv gem_file, "#{package_dir}/#{gem_file}" } | |||
end | |||
|
|||
desc "Remove all existing packaged files." | |||
task :clean do | |||
verbose(true) { rm_f package_dir } | |||
end | |||
|
|||
desc "Install all dependencies using Bundler's deployment mode." | |||
task :prepare => :clean do | |||
system "bundle install --deployment" | |||
end | end | ||
end | end |
This file was deleted.
Oops, something went wrong.
Binary file not shown.