capistrano-rails-artifact 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22521537c54403392131a5708d7e1dcb107bb562
4
- data.tar.gz: 95a16e59e2c3b934ec89ba678ddf7cf0400c5f96
3
+ metadata.gz: 7e71fe80c8af9f9e7bb4dbc1721443d960eae5ad
4
+ data.tar.gz: db168618ebb4d0edd0803cc6c15b867961def937
5
5
  SHA512:
6
- metadata.gz: 8c6b20785363b01cd92843bacc926a255d3aef35d8243ef8af591658912140f42cc6d2adc12abc8abc062fcf9da02328c1952eed1920919bc91e830c28038f96
7
- data.tar.gz: bb23e28cee2c0e9b78e9e9d63a9c9a5435ab8dd145edac0e2211383fb297547aacbacc8045a875bd362b3e9e8a18b5511d7897a3c42d1baf513c28b40b2f4e8b
6
+ metadata.gz: b367fd2b4b123386592ee4b21cd5f8d56a304256bc51a25264f323941709b1476e12bd7a1e1c14b4b4528125cb43947af556956a034317fd58a10a9cb090af49
7
+ data.tar.gz: e5b7e864b0e313d87e0eeca04a963b6a335025fa2769e0cad68a3c492fb397138680be0d8abb9d1ebff3bb61822c51dec4a6fc2cea67ce36540cde1dbde21a8d
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog for CapistranoRailsArtifact
2
+
3
+ ## 1.1.0 (2016-05-10)
4
+
5
+ * [rubyisbeautiful] - add option for alternate compression of artifact (xz) (PR #2)
6
+
7
+ ## 1.0.0 (2015-01-18)
8
+
9
+ * [ctaintor] - initial release
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CapistranoRailsArtifact
2
2
 
3
- A gem to allow you to package your Rails app into a .tar.gz and deploy it easily. This works by creating a
3
+ A gem to allow you to package your Rails app into a .tar.gz or a .tar.xz and deploy it easily. This works by creating a
4
4
  new type of 'scm' for Capistrano 3.
5
5
 
6
6
  ## Installation
@@ -42,6 +42,9 @@ In your `config/deploy.rb`, you just need to set two variables
42
42
  set :rails_artifact_archive_location, '<URL TO TAR GZ>'
43
43
 
44
44
  set :scm, :rails_artifact
45
+
46
+ # optional setting
47
+ set :rails_artifact_archive_compression, 'xz' # default is 'gz'
45
48
  ```
46
49
 
47
50
  ## Testing
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = CapistranoRailsArtifact::VERSION
9
9
  spec.authors = ["Case Taintor"]
10
10
  spec.email = ["case.taintor@klarna.com"]
11
- spec.summary = %q{A gem to allow you to deploy using a .tar.gz}
12
- spec.description = %q{A gem to allow you to deploy using a .tar.gz}
11
+ spec.summary = %q{A gem to allow you to deploy using a .tar.gz or .tar.xz}
12
+ spec.description = %q{A gem to allow you to deploy using a .tar.gz or .tar.xz}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module CapistranoRailsArtifact
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -7,14 +7,24 @@ namespace :rails_artifact do
7
7
  task :create_release do
8
8
  on release_roles :all do
9
9
  archive_url = fetch(:rails_artifact_archive_location)
10
- file_location = '/tmp/build-artifact-files/build-artifact.tar.gz'
10
+ compression = fetch(:rails_artifact_compression, 'gz')
11
+
12
+ case compression
13
+ when 'gz'
14
+ tar_option = 'z'
15
+ when 'xz'
16
+ tar_option = 'J'
17
+ end
18
+
19
+ file_location = "/tmp/build-artifact-files/build-artifact.tar.#{compression}"
20
+
11
21
  execute :mkdir, '-p', File.dirname(file_location)
12
22
  execute :rm, "-f #{file_location}"
13
23
 
14
24
  execute :mkdir, '-p', release_path
15
25
  execute :wget, "--no-check-certificate -q -O '#{file_location}' '#{archive_url}'"
16
26
  within release_path do
17
- execute :tar, "-xzf '#{file_location}'"
27
+ execute :tar, "-x#{tar_option}f '#{file_location}'"
18
28
  end
19
29
  execute :rm, file_location
20
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rails-artifact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Case Taintor
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- description: A gem to allow you to deploy using a .tar.gz
69
+ description: A gem to allow you to deploy using a .tar.gz or .tar.xz
70
70
  email:
71
71
  - case.taintor@klarna.com
72
72
  executables: []
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".capistrano/metrics"
77
77
  - ".gitignore"
78
+ - CHANGELOG.md
78
79
  - Capfile
79
80
  - Gemfile
80
81
  - LICENSE.txt
@@ -113,7 +114,7 @@ rubyforge_project:
113
114
  rubygems_version: 2.4.8
114
115
  signing_key:
115
116
  specification_version: 4
116
- summary: A gem to allow you to deploy using a .tar.gz
117
+ summary: A gem to allow you to deploy using a .tar.gz or .tar.xz
117
118
  test_files:
118
119
  - test/capistrano-rails-artifact_test.rb
119
120
  - test/config/deploy.rb