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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b54f8ece5b9b3638ee86bd567f8008df7b74716
4
- data.tar.gz: 5b59415ef3ac0e8ce16000c5deba0db2974f086e
3
+ metadata.gz: 08d44afb0f073e1eda9fa16087bb3fd9fcb9a032
4
+ data.tar.gz: f6dbd43141c0410316434892affface784f2a65d
5
5
  SHA512:
6
- metadata.gz: 166b7e5b2f424f573081ea7bb005b9a46a84ddcae3684bb7cd36742bd4b2818216f292e30cd296ef5f3c6ed79d7bd5d51cae875e3cac165a89e07cd1409a0008
7
- data.tar.gz: 29dbb7d718ef55d7491a7c93551a3dcc89c3439f9e5f7fd890eabaaafe1fb66b4938c1f0cab7158595c806b50ae7c70b01ec0df44573e01c8d83b9fd13da892b
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-rails', '1.1.6')
21
- spec.add_dependency('capistrano-bundler', '1.1.4')
22
- spec.add_dependency('capistrano-rbenv', '2.0.4')
23
- spec.add_dependency('capistrano3-unicorn', '0.2.1')
24
- spec.add_dependency('capistrano-db-tasks', '0.4')
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
@@ -6,8 +6,7 @@ module Caploy
6
6
  railtie_name :caploy
7
7
 
8
8
  rake_tasks do
9
- load File.join(File.dirname(__FILE__), "tasks/assets.rake")
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}`
@@ -21,7 +21,6 @@ namespace :nginx do
21
21
  Restarts the nginx web-server.
22
22
  DESC
23
23
  task :restart do
24
- #run "sudo god restart nginx"
25
24
  run "sudo /etc/init.d/nginx restart"
26
25
  end
27
26
 
@@ -1,3 +1,3 @@
1
1
  module Caploy
2
- VERSION = "1.0.4"
2
+ VERSION = "2.0.0"
3
3
  end
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: 1.0.4
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-03-25 00:00:00.000000000 Z
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-rails
28
+ name: capistrano
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.6
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: 1.1.6
40
+ version: '3.6'
41
41
  - !ruby/object:Gem::Dependency
42
- name: capistrano-bundler
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.1.4
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.1.4
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.4
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.4
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.1
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.1
82
+ version: '0.2'
83
83
  - !ruby/object:Gem::Dependency
84
- name: capistrano-db-tasks
84
+ name: capistrano-bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: '0.4'
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: '0.4'
96
+ version: '1.2'
97
97
  description: capistrano deployment helpling
98
98
  email:
99
99
  - michael.schiller@gmx.de