Class: SLab::Omeka::Rake::PackageTask
- Inherits:
-
Rake::PackageTask
- Object
- Rake::PackageTask
- SLab::Omeka::Rake::PackageTask
- Defined in:
- lib/slab/omeka/rake/package_task.rb
Instance Method Summary collapse
- #basename ⇒ Object
- #package_dir_path ⇒ Object
- #package_name ⇒ Object
- #tar_bz2_file ⇒ Object
- #tar_gz_file ⇒ Object
- #tgz_file ⇒ Object
- #zip_file ⇒ Object
Instance Method Details
#basename ⇒ Object
18 19 20 |
# File 'lib/slab/omeka/rake/package_task.rb', line 18 def basename @version ? "#{@name}-#{@version}" : @name end |
#package_dir_path ⇒ Object
10 11 12 |
# File 'lib/slab/omeka/rake/package_task.rb', line 10 def package_dir_path "#{package_dir}/#{@name}" end |
#package_name ⇒ Object
14 15 16 |
# File 'lib/slab/omeka/rake/package_task.rb', line 14 def package_name @name end |
#tar_bz2_file ⇒ Object
22 23 24 |
# File 'lib/slab/omeka/rake/package_task.rb', line 22 def tar_bz2_file "#{basename}.tar.bz2" end |
#tar_gz_file ⇒ Object
26 27 28 |
# File 'lib/slab/omeka/rake/package_task.rb', line 26 def tar_gz_file "#{basename}.tar.gz" end |
#tgz_file ⇒ Object
30 31 32 |
# File 'lib/slab/omeka/rake/package_task.rb', line 30 def tgz_file "#{basename}.tgz" end |
#zip_file ⇒ Object
34 35 36 |
# File 'lib/slab/omeka/rake/package_task.rb', line 34 def zip_file "#{basename}.zip" end |