caploy 1.0.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/caploy.gemspec +5 -5
- data/lib/caploy.rb +0 -11
- data/lib/caploy/railtie.rb +1 -2
- data/lib/caploy/recipes/deploy.rb +1 -76
- data/lib/caploy/recipes/nginx.rb +0 -1
- data/lib/caploy/version.rb +1 -1
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08d44afb0f073e1eda9fa16087bb3fd9fcb9a032
|
4
|
+
data.tar.gz: f6dbd43141c0410316434892affface784f2a65d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc5778011155d0d520d55659f7be1de00921a3f72d91f15fd655902b5dd656b643e30a4c846061746ce87f4b6872a0e263c28a6cfec1746c8b31f9ce35c82f66
|
7
|
+
data.tar.gz: 8129d8018da1097a81d8ed11759b523e893767a8a5813cffde29707c63010546055d326619d3f57b98a7cbbd1aeab26572f2035be9470d7be02d4b123456888b
|
data/caploy.gemspec
CHANGED
@@ -17,11 +17,11 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.add_dependency('gemcutter')
|
19
19
|
|
20
|
-
spec.add_dependency('capistrano
|
21
|
-
spec.add_dependency('capistrano-
|
22
|
-
spec.add_dependency('capistrano-rbenv', '2.0
|
23
|
-
spec.add_dependency('capistrano3-unicorn', '0.2
|
24
|
-
spec.add_dependency('capistrano-
|
20
|
+
spec.add_dependency('capistrano', '~> 3.6')
|
21
|
+
spec.add_dependency('capistrano-rails', '~> 1.2')
|
22
|
+
spec.add_dependency('capistrano-rbenv', '~> 2.0')
|
23
|
+
spec.add_dependency('capistrano3-unicorn', '~> 0.2')
|
24
|
+
spec.add_dependency('capistrano-bundler', '~> 1.2')
|
25
25
|
|
26
26
|
spec.version = Caploy::VERSION
|
27
27
|
end
|
data/lib/caploy.rb
CHANGED
@@ -2,15 +2,4 @@ require 'caploy/version'
|
|
2
2
|
|
3
3
|
module Caploy
|
4
4
|
require 'caploy/railtie' if defined?(Rails)
|
5
|
-
|
6
|
-
# Load DSL and Setup Up Stages
|
7
|
-
require 'capistrano/setup'
|
8
|
-
|
9
|
-
# Includes default deployment tasks
|
10
|
-
require 'capistrano/deploy'
|
11
|
-
|
12
|
-
# Includes tasks from other gems included in your Gemfile
|
13
|
-
require 'capistrano/rails'
|
14
|
-
require 'capistrano/rbenv'
|
15
|
-
require 'capistrano3/unicorn'
|
16
5
|
end
|
data/lib/caploy/railtie.rb
CHANGED
@@ -6,8 +6,7 @@ module Caploy
|
|
6
6
|
railtie_name :caploy
|
7
7
|
|
8
8
|
rake_tasks do
|
9
|
-
|
10
|
-
#Dir[File.join(File.dirname(__FILE__), 'tasks/*.rake')].each { |f| load f }
|
9
|
+
Dir[File.join(File.dirname(__FILE__), 'tasks/*.rake')].each { |f| load f }
|
11
10
|
end
|
12
11
|
end
|
13
12
|
end
|
@@ -1,78 +1,4 @@
|
|
1
1
|
|
2
|
-
# Custom SSH Options
|
3
|
-
# ==================
|
4
|
-
# You may pass any option but keep in mind that net/ssh understands a
|
5
|
-
# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start).
|
6
|
-
#
|
7
|
-
# Global options
|
8
|
-
# --------------
|
9
|
-
# set :ssh_options, {
|
10
|
-
# keys: %w(/home/rlisowski/.ssh/id_rsa),
|
11
|
-
# forward_agent: false,
|
12
|
-
# auth_methods: %w(password)
|
13
|
-
# }
|
14
|
-
#
|
15
|
-
# And/or per server (overrides global)
|
16
|
-
# ------------------------------------
|
17
|
-
# server 'example.com',
|
18
|
-
# user: 'user_name',
|
19
|
-
# roles: %w{web app},
|
20
|
-
# ssh_options: {
|
21
|
-
# user: 'user_name', # overrides user setting above
|
22
|
-
# keys: %w(/home/user_name/.ssh/id_rsa),
|
23
|
-
# forward_agent: false,
|
24
|
-
# auth_methods: %w(publickey password)
|
25
|
-
# # password: 'please use keys'
|
26
|
-
# }
|
27
|
-
|
28
|
-
#set :unicorn_hard_restart, true if ENV['HARD_RESTART']
|
29
|
-
|
30
|
-
# what specs should be run before deployment is allowed to
|
31
|
-
# continue, see lib/capistrano/tasks/run_tests.cap
|
32
|
-
# set :tests, []
|
33
|
-
|
34
|
-
# files which need to be symlinked to other parts of the
|
35
|
-
# filesystem. For example nginx virtualhosts, log rotation
|
36
|
-
# init scripts etc.
|
37
|
-
# set(:symlinks, [
|
38
|
-
# {
|
39
|
-
# source: "nginx.conf",
|
40
|
-
# link: "/etc/nginx/sites-enabled/#{fetch(:full_app_name)}"
|
41
|
-
# },
|
42
|
-
# {
|
43
|
-
# source: "unicorn_init.sh",
|
44
|
-
# link: "/etc/init.d/unicorn_#{fetch(:full_app_name)}"
|
45
|
-
# }
|
46
|
-
# ])
|
47
|
-
|
48
|
-
# which config files should be copied by deploy:setup_config
|
49
|
-
# see documentation in lib/capistrano/tasks/setup_config.cap
|
50
|
-
# for details of operations
|
51
|
-
# set(:config_files, %w(
|
52
|
-
# nginx.conf
|
53
|
-
# database.example.yml
|
54
|
-
# unicorn.rb
|
55
|
-
# unicorn_init.sh
|
56
|
-
# ))
|
57
|
-
|
58
|
-
# Default branch is :master
|
59
|
-
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
|
60
|
-
|
61
|
-
# Default value for :scm is :git
|
62
|
-
# set :scm, :git
|
63
|
-
|
64
|
-
# Default value for :format is :pretty
|
65
|
-
# set :format, :pretty
|
66
|
-
|
67
|
-
# Default value for :log_level is :debug
|
68
|
-
# set :log_level, :debug
|
69
|
-
|
70
|
-
# Default value for :pty is false
|
71
|
-
# set :pty, true
|
72
|
-
|
73
|
-
# Default value for default_env is {}
|
74
|
-
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
75
|
-
|
76
2
|
set :rake, "#{fetch(:rbenv_prefix)} bundle exec rake"
|
77
3
|
|
78
4
|
namespace :deploy do
|
@@ -93,8 +19,7 @@ namespace :deploy do
|
|
93
19
|
end
|
94
20
|
after 'deploy:compile_assets', 'deploy:compile_nondigest_assets'
|
95
21
|
|
96
|
-
desc "checks whether the currently checkout out revision matches the
|
97
|
-
remote one we're trying to deploy from"
|
22
|
+
desc "checks whether the currently checkout out revision matches the remote one we're trying to deploy from"
|
98
23
|
task :check_revision do
|
99
24
|
branch = fetch(:branch)
|
100
25
|
unless `git rev-parse HEAD` == `git rev-parse origin/#{branch}`
|
data/lib/caploy/recipes/nginx.rb
CHANGED
data/lib/caploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Schiller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemcutter
|
@@ -25,75 +25,75 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: capistrano
|
28
|
+
name: capistrano
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '3.6'
|
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:
|
40
|
+
version: '3.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: capistrano-
|
42
|
+
name: capistrano-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: '1.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: '1.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: capistrano-rbenv
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.0
|
61
|
+
version: '2.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.0
|
68
|
+
version: '2.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capistrano3-unicorn
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.2
|
75
|
+
version: '0.2'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.2
|
82
|
+
version: '0.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: capistrano-
|
84
|
+
name: capistrano-bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.2'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.2'
|
97
97
|
description: capistrano deployment helpling
|
98
98
|
email:
|
99
99
|
- michael.schiller@gmx.de
|