Class: LatexFlow::CLI::Archive
- Defined in:
- lib/latex-flow/cli/archive.rb
Instance Method Summary collapse
Methods inherited from Generic
Constructor Details
This class inherits a constructor from LatexFlow::CLI::Generic
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/latex-flow/cli/archive.rb', line 6 def run require 'rake/packagetask' tag = @options[:tag] version = Time.new.to_i.to_s Rake::PackageTask.new(tag, version) do |p| p.package_dir = "./archives" p.package_files.include("**") p.package_files.exclude('archives') p.need_zip = true end Rake::Task[:package].invoke end |