capistrano-s3_archive 0.9.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-13 00:00:00.000000000 Z
11
+ date: 2019-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: capistrano
14
+ name: aws-sdk-s3
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: aws-sdk
28
+ name: capistrano
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mocha
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rake
57
85
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +94,20 @@ dependencies:
66
94
  - - ">="
67
95
  - !ruby/object:Gem::Version
68
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
69
111
  - !ruby/object:Gem::Dependency
70
112
  name: rubocop
71
113
  requirement: !ruby/object:Gem::Requirement
@@ -89,26 +131,35 @@ extra_rdoc_files: []
89
131
  files:
90
132
  - ".gitignore"
91
133
  - ".rspec"
134
+ - ".rubocop.yml"
135
+ - ".rubocop_todo.yml"
92
136
  - Gemfile
93
137
  - README.md
94
138
  - Rakefile
95
- - Vagrantfile
96
139
  - bin/console
97
140
  - bin/setup
98
141
  - capistrano-s3_archive.gemspec
142
+ - example/.bundle/config
143
+ - example/Capfile
144
+ - example/Gemfile
145
+ - example/Gemfile.lock
146
+ - example/config/deploy.rb
147
+ - example/config/deploy/localtest.rb
148
+ - example/config/deploy/production.rb
149
+ - example/config/deploy/staging.rb
150
+ - img/s3_archive-direct.png
151
+ - img/s3_archive-repo-branch.png
99
152
  - img/s3_archive-rsync.png
100
153
  - legacy_README.md
101
154
  - lib/capistrano/legacy_s3_archive.rb
102
155
  - lib/capistrano/s3_archive.rb
103
156
  - lib/capistrano/s3_archive/version.rb
104
157
  - lib/capistrano/scm/s3_archive.rb
158
+ - lib/capistrano/scm/s3_archive/archive_object.rb
159
+ - lib/capistrano/scm/s3_archive/local_cache.rb
160
+ - lib/capistrano/scm/s3_archive/remote_cache.rb
105
161
  - lib/capistrano/scm/tasks/s3_archive.rake
106
162
  - lib/capistrano/tasks/legacy_s3_archive.rake
107
- - vagrant_example/.insecure_private_key
108
- - vagrant_example/Capfile
109
- - vagrant_example/Gemfile
110
- - vagrant_example/config/deploy.rb
111
- - vagrant_example/config/deploy/production.rb
112
163
  homepage: https://github.com/komazarari/capistrano-s3_archive
113
164
  licenses: []
114
165
  metadata: {}
@@ -120,15 +171,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
171
  requirements:
121
172
  - - ">="
122
173
  - !ruby/object:Gem::Version
123
- version: 2.0.0
174
+ version: 2.4.0
124
175
  required_rubygems_version: !ruby/object:Gem::Requirement
125
176
  requirements:
126
177
  - - ">="
127
178
  - !ruby/object:Gem::Version
128
179
  version: '0'
129
180
  requirements: []
130
- rubyforge_project:
131
- rubygems_version: 2.6.11
181
+ rubygems_version: 3.0.3
132
182
  signing_key:
133
183
  specification_version: 4
134
184
  summary: Capistrano deployment from an archive on Amazon S3.
data/Vagrantfile DELETED
@@ -1,22 +0,0 @@
1
- # -*- mode: ruby -*-
2
- # vi: set ft=ruby :
3
-
4
- Vagrant.configure(2) do |config|
5
- config.vm.box = "ubuntu/trusty64"
6
-
7
- config.vm.provision "shell", inline: <<-SHELL
8
- if ! dpkg -l | grep ruby2.2 > /dev/null; then
9
- apt-add-repository ppa:brightbox/ruby-ng
10
- apt-get update
11
- apt-get install ruby2.2 -y
12
- fi
13
- gem install bundler --no-ri --no-rdoc
14
- cp /vagrant/vagrant_example/.insecure_private_key /home/vagrant/.ssh/insecure_key
15
- chmod 400 /home/vagrant/.ssh/insecure_key
16
- chown vagrant:vagrant /home/vagrant/.ssh/insecure_key
17
- if ! grep "`ssh-keygen -y -f .ssh/insecure_key`" /home/vagrant/.ssh/authorized_keys ;then
18
- ssh-keygen -y -f .ssh/insecure_key >> .ssh/authorized_keys
19
- fi
20
- apt-get install git zip -y
21
- SHELL
22
- end
@@ -1,27 +0,0 @@
1
- -----BEGIN RSA PRIVATE KEY-----
2
- MIIEogIBAAKCAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzI
3
- w+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoP
4
- kcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2
5
- hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NO
6
- Td0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcW
7
- yLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQIBIwKCAQEA4iqWPJXtzZA68mKd
8
- ELs4jJsdyky+ewdZeNds5tjcnHU5zUYE25K+ffJED9qUWICcLZDc81TGWjHyAqD1
9
- Bw7XpgUwFgeUJwUlzQurAv+/ySnxiwuaGJfhFM1CaQHzfXphgVml+fZUvnJUTvzf
10
- TK2Lg6EdbUE9TarUlBf/xPfuEhMSlIE5keb/Zz3/LUlRg8yDqz5w+QWVJ4utnKnK
11
- iqwZN0mwpwU7YSyJhlT4YV1F3n4YjLswM5wJs2oqm0jssQu/BT0tyEXNDYBLEF4A
12
- sClaWuSJ2kjq7KhrrYXzagqhnSei9ODYFShJu8UWVec3Ihb5ZXlzO6vdNQ1J9Xsf
13
- 4m+2ywKBgQD6qFxx/Rv9CNN96l/4rb14HKirC2o/orApiHmHDsURs5rUKDx0f9iP
14
- cXN7S1uePXuJRK/5hsubaOCx3Owd2u9gD6Oq0CsMkE4CUSiJcYrMANtx54cGH7Rk
15
- EjFZxK8xAv1ldELEyxrFqkbE4BKd8QOt414qjvTGyAK+OLD3M2QdCQKBgQDtx8pN
16
- CAxR7yhHbIWT1AH66+XWN8bXq7l3RO/ukeaci98JfkbkxURZhtxV/HHuvUhnPLdX
17
- 3TwygPBYZFNo4pzVEhzWoTtnEtrFueKxyc3+LjZpuo+mBlQ6ORtfgkr9gBVphXZG
18
- YEzkCD3lVdl8L4cw9BVpKrJCs1c5taGjDgdInQKBgHm/fVvv96bJxc9x1tffXAcj
19
- 3OVdUN0UgXNCSaf/3A/phbeBQe9xS+3mpc4r6qvx+iy69mNBeNZ0xOitIjpjBo2+
20
- dBEjSBwLk5q5tJqHmy/jKMJL4n9ROlx93XS+njxgibTvU6Fp9w+NOFD/HvxB3Tcz
21
- 6+jJF85D5BNAG3DBMKBjAoGBAOAxZvgsKN+JuENXsST7F89Tck2iTcQIT8g5rwWC
22
- P9Vt74yboe2kDT531w8+egz7nAmRBKNM751U/95P9t88EDacDI/Z2OwnuFQHCPDF
23
- llYOUI+SpLJ6/vURRbHSnnn8a/XG+nzedGH5JGqEJNQsz+xT2axM0/W/CRknmGaJ
24
- kda/AoGANWrLCz708y7VYgAtW2Uf1DPOIYMdvo6fxIB5i9ZfISgcJ/bbCUkFrhoH
25
- +vq/5CIWxCPp0f85R4qxxQ5ihxJ0YDQT9Jpx4TMss4PSavPaBH3RXow5Ohe+bYoQ
26
- NE5OgEXk2wVfZczCZpigBKbKZHNYcelXtTt/nP3rsCuGcM4h53s=
27
- -----END RSA PRIVATE KEY-----
@@ -1,27 +0,0 @@
1
- # Load DSL and set up stages
2
- require 'capistrano/setup'
3
-
4
- # Include default deployment tasks
5
- require 'capistrano/deploy'
6
-
7
- # Include tasks from other gems included in your Gemfile
8
- #
9
- # For documentation on these, see for example:
10
- #
11
- # https://github.com/capistrano/rvm
12
- # https://github.com/capistrano/rbenv
13
- # https://github.com/capistrano/chruby
14
- # https://github.com/capistrano/bundler
15
- # https://github.com/capistrano/rails
16
- # https://github.com/capistrano/passenger
17
- #
18
- # require 'capistrano/rvm'
19
- # require 'capistrano/rbenv'
20
- # require 'capistrano/chruby'
21
- # require 'capistrano/bundler'
22
- # require 'capistrano/rails/assets'
23
- # require 'capistrano/rails/migrations'
24
- # require 'capistrano/passenger'
25
-
26
- # Load custom tasks from `lib/capistrano/tasks` if you have any defined
27
- Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
@@ -1,5 +0,0 @@
1
- # A sample Gemfile
2
- source "https://rubygems.org"
3
-
4
- gem "capistrano"
5
- gem "capistrano-s3_archive", path: '/vagrant'
@@ -1,7 +0,0 @@
1
- server 'localhost',
2
- user: 'vagrant',
3
- roles: ['web', 'app'],
4
- ssh_options: {
5
- auth_methods: ['publickey'],
6
- keys: '/home/vagrant/.ssh/insecure_key'
7
- }
@@ -1,50 +0,0 @@
1
- # config valid only for current version of Capistrano
2
- lock '3.6.1'
3
-
4
- set :application, 'my_app_name'
5
-
6
- set :repo_url, 's3://<YOUR_BUCKET>/<PREFIX>'
7
- set :s3_client_options, { region: 'ap-northeast-1' } # and credentials, etc if needed
8
-
9
- # Default branch is :master
10
- # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
11
-
12
- # Default deploy_to directory is /var/www/my_app_name
13
- set :deploy_to, '/home/vagrant/my_app_name'
14
-
15
- # Default value for :scm is :git
16
- set :scm, :s3_archive
17
-
18
- # Default value for :format is :pretty
19
- # set :format, :pretty
20
-
21
- # Default value for :log_level is :debug
22
- # set :log_level, :debug
23
-
24
- # Default value for :pty is false
25
- # set :pty, true
26
-
27
- # Default value for :linked_files is []
28
- # set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')
29
-
30
- # Default value for linked_dirs is []
31
- # set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')
32
-
33
- # Default value for default_env is {}
34
- # set :default_env, { path: "/opt/ruby/bin:$PATH" }
35
-
36
- # Default value for keep_releases is 5
37
- # set :keep_releases, 5
38
-
39
- namespace :deploy do
40
-
41
- after :restart, :clear_cache do
42
- on roles(:web), in: :groups, limit: 3, wait: 10 do
43
- # Here we can do anything such as:
44
- # within release_path do
45
- # execute :rake, 'cache:clear'
46
- # end
47
- end
48
- end
49
-
50
- end