Class: RedminePluginSupport::ReleaseTask
- Inherits:
-
GeneralTask
- Object
- Rake::TaskLib
- GeneralTask
- RedminePluginSupport::ReleaseTask
- Defined in:
- lib/redmine_plugin_support/release_task.rb
Instance Attribute Summary
Attributes inherited from GeneralTask
Instance Method Summary collapse
Methods inherited from GeneralTask
Constructor Details
This class inherits a constructor from RedminePluginSupport::GeneralTask
Instance Method Details
#define ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/redmine_plugin_support/release_task.rb', line 3 def define desc "Create packages" task :release => ['release:zip', 'release:tarball'] namespace :release do desc "Create a zip archive" task :zip do sh "git archive --format=zip --prefix=#{Base.instance.project_name}/ HEAD > #{Base.instance.project_name}.zip" end desc "Create a tarball archive" task :tarball do sh "git archive --format=tar --prefix=#{Base.instance.project_name }/ HEAD | gzip > #{Base.instance.project_name}.tar.gz" end end end |