Module: Flak::Template::Release::Tasks

Defined in:
lib/flak/rake/templates/release.rb

Class Method Summary collapse

Class Method Details

.extended(target) ⇒ Object



54
55
56
# File 'lib/flak/rake/templates/release.rb', line 54

def self.extended target
  task_factory target
end

.task_factory(target) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/flak/rake/templates/release.rb', line 58

def self.task_factory target
  settings = target.settings


  desc "Build everything"
  task :build 
  CLEAN.include( File.dirname(settings[:build_directory])  )
  CLOBBER.include( settings[:revision_directory]) 

  desc "Release everything"     
  task :default => ["release"]




  desc "Build and tar up product to tar.gz."     
  task :tar => :release do
    Dir.chdir( settings[:platform_directory] ) do |d|
      sh "tar cfz #{target.tar_filename} #{target.file_to_tar}"
    end
  end




end