Class: ThorPackage::Tasks
- Inherits:
-
Thor
- Object
- Thor
- ThorPackage::Tasks
- Includes:
- Thor::Actions
- Defined in:
- lib/thor-package.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/thor-package.rb', line 11 def build cleanup run "git archive --format=tar -o #{pkg_path}/tarfile HEAD" run "tar rf #{pkg_path}/tarfile VERSION" # Stick VERSION in the tar run "gzip -9 #{pkg_path}/tarfile" FileUtils.mv "#{pkg_path}/tarfile.gz", artifact_path say "Built #{artifact_path}" end |