capistrano-copy-bundle 0.0.1
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 +7 -0
- data/lib/capistrano-copy-bundle/version.rb +3 -0
- data/lib/capistrano-copy-bundle.rb +15 -0
- data/lib/capistrano3/copybundle.rb +1 -0
- data/lib/capistrano3/tasks/copybundle.rake +30 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d4142815f3ea6786845b6165dcc932f14d67f5cb
|
4
|
+
data.tar.gz: ffbf932757eed3faf6b0d0efaf20b86001534484
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7ae5b45bbd7f956d4af0bb799fb5afd416ddcb0fa81dd7c4738942274dadc6efb41df5aa30519876608361ca9debe5b27520a89780e6a320ced1aa23ebde521d
|
7
|
+
data.tar.gz: 8453636a348d65186f2007f773764239ba7a282271c5b7c6372ce390358b4f6a3329c36533b5425531f8f7e045eb909eb7bc744f2f20335ddadcb7f12f843311
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module CapistranoCopyBundle
|
2
|
+
|
3
|
+
def CapistranoCopyBundle.tarfile_name
|
4
|
+
"#{fetch(:application)}-bundle.tar.gz"
|
5
|
+
end
|
6
|
+
|
7
|
+
def CapistranoCopyBundle.local_tarfile
|
8
|
+
"#{fetch(:tmp_dir)}/#{tarfile_name}"
|
9
|
+
end
|
10
|
+
|
11
|
+
def CapistranoCopyBundle.remote_tarfile
|
12
|
+
"#{fetch(:tmp_dir_remote, fetch(:tmp_dir))}/#{tarfile_name}"
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../tasks/copybundle.rake", __FILE__)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require "capistrano-copy-bundle"
|
2
|
+
|
3
|
+
desc %{execute "bundle package --all" and store to .tar}
|
4
|
+
task :make_bundle_package do
|
5
|
+
run_locally do
|
6
|
+
execute :bundle, "package --all"
|
7
|
+
execute :tar, "-cf #{CapistranoCopyBundle.local_tarfile} vendor/cache/"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
namespace :deploy do
|
12
|
+
|
13
|
+
desc "copy bundle to releases"
|
14
|
+
task :copy_bundle => :make_bundle_package do
|
15
|
+
on release_roles :all do
|
16
|
+
within deploy_to do
|
17
|
+
upload! CapistranoCopyBundle.local_tarfile, CapistranoCopyBundle.remote_tarfile
|
18
|
+
execute :tar, '--extract --file', CapistranoCopyBundle.remote_tarfile, '--directory', shared_path
|
19
|
+
execute :rm, CapistranoCopyBundle.remote_tarfile
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
run_locally do
|
24
|
+
if File.exists? CapistranoCopyBundle.local_tarfile
|
25
|
+
execute :rm, CapistranoCopyBundle.local_tarfile
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-copy-bundle
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexander Markov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: capistrano
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
description: Bundling all the gems locally and sending to remote server. For capistrano
|
28
|
+
3.x
|
29
|
+
email:
|
30
|
+
- apsheronets@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- lib/capistrano-copy-bundle.rb
|
36
|
+
- lib/capistrano-copy-bundle/version.rb
|
37
|
+
- lib/capistrano3/copybundle.rb
|
38
|
+
- lib/capistrano3/tasks/copybundle.rake
|
39
|
+
homepage: https://github.com/apsheronets/capistrano-copy-bundle
|
40
|
+
licenses:
|
41
|
+
- LGPL
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
requirements: []
|
58
|
+
rubyforge_project:
|
59
|
+
rubygems_version: 2.5.2
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
62
|
+
summary: Bundling all the gems locally and sending to remote server. For capistrano
|
63
|
+
3.x
|
64
|
+
test_files: []
|