capistrano-rails-artifact 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +4 -1
- data/capistrano-rails-artifact.gemspec +2 -2
- data/lib/capistrano-rails-artifact/version.rb +1 -1
- data/lib/capistrano/tasks/rails_artifact.rake +12 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e71fe80c8af9f9e7bb4dbc1721443d960eae5ad
|
4
|
+
data.tar.gz: db168618ebb4d0edd0803cc6c15b867961def937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b367fd2b4b123386592ee4b21cd5f8d56a304256bc51a25264f323941709b1476e12bd7a1e1c14b4b4528125cb43947af556956a034317fd58a10a9cb090af49
|
7
|
+
data.tar.gz: e5b7e864b0e313d87e0eeca04a963b6a335025fa2769e0cad68a3c492fb397138680be0d8abb9d1ebff3bb61822c51dec4a6fc2cea67ce36540cde1dbde21a8d
|
data/CHANGELOG.md
ADDED
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
|
|
@@ -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
|
-
|
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, "-
|
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.
|
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
|