Class: SLab::Omeka::Rake::PackageTask

Inherits:
Rake::PackageTask
  • Object
show all
Defined in:
lib/slab/omeka/rake/package_task.rb

Instance Method Summary collapse

Instance Method Details

#basenameObject



18
19
20
# File 'lib/slab/omeka/rake/package_task.rb', line 18

def basename
  @version ? "#{@name}-#{@version}" : @name
end

#package_dir_pathObject



10
11
12
# File 'lib/slab/omeka/rake/package_task.rb', line 10

def package_dir_path
  "#{package_dir}/#{@name}"
end

#package_nameObject



14
15
16
# File 'lib/slab/omeka/rake/package_task.rb', line 14

def package_name
  @name
end

#tar_bz2_fileObject



22
23
24
# File 'lib/slab/omeka/rake/package_task.rb', line 22

def tar_bz2_file
  "#{basename}.tar.bz2"
end

#tar_gz_fileObject



26
27
28
# File 'lib/slab/omeka/rake/package_task.rb', line 26

def tar_gz_file
  "#{basename}.tar.gz"
end

#tgz_fileObject



30
31
32
# File 'lib/slab/omeka/rake/package_task.rb', line 30

def tgz_file
  "#{basename}.tgz"
end

#zip_fileObject



34
35
36
# File 'lib/slab/omeka/rake/package_task.rb', line 34

def zip_file
  "#{basename}.zip"
end