openteam-capistrano 1.0.4 → 1.0.5

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: 482f7d7fde14bb4c750e841f26ec5385a6d6aeac
4
- data.tar.gz: 6e9f6df8c7162941f0af9012bdb748a73d512c28
3
+ metadata.gz: 24eb3a32388d3769c7847e8ce65e692bef9f0c91
4
+ data.tar.gz: cd7ac28bd5daa5e12bcbb1888af3e48d7e9e2ac4
5
5
  SHA512:
6
- metadata.gz: ddb4f5745439c54b85ba7706041572689f95c63225a0157cb9ba6840d9a3a9709a69f2677cd9b64eccca294825115cd67a293a158f7620b257d5ec044d244678
7
- data.tar.gz: b1edbaf137d0062c5475025da6fa8233d67e4787b24aa10fd8a4c9c71a13cef63234ed96850beb28048abe8529f526f51f7004db5a369b51ad9886350fed0989
6
+ metadata.gz: 179c732ae12a0d8dd3c305e7c780bc3cd4dd472741793aa3b62c0b901904536f34720f59460a580267dd50d88afb530e64a1891add1ccd9218e49241e7cabe11
7
+ data.tar.gz: 2839efe620264a1b5fc73b6c4aa29c22949ae675c1cbf16c6b970b19388b9e51e4f7df17d2b4669a8ebdb6a4eb98795f26a3917faa56e90b2097ad965a700fc4
@@ -66,3 +66,7 @@ end
66
66
  def used_unicorn?
67
67
  !@used_unicorn.nil?
68
68
  end
69
+
70
+ def used_whenever?
71
+ @used_whenever ||= File.exists?('config/schedule.rb')
72
+ end
@@ -1,4 +1,6 @@
1
- before 'deploy:cleanup', 'deploy:tagging:clean'
2
1
  after 'deploy', 'deploy:tagging:create'
3
2
  after 'deploy:publishing', 'unicorn:restart'
4
3
  after 'unicorn:restart', 'airbrake:deploy'
4
+ before 'deploy:cleanup', 'deploy:tagging:clean'
5
+ before 'deploy:reverted', 'whenever:clear_crontab' if used_whenever?
6
+ before 'deploy:updated', 'whenever:clear_crontab' if used_whenever?
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'openteam-capistrano'
7
- gem.version = '1.0.4'
7
+ gem.version = '1.0.5'
8
8
  gem.authors = ["OpenTeam developers"]
9
9
  gem.email = ["developers@openteam.ru"]
10
10
  gem.description = %q{OpenTeam common capistrano3 recipe}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openteam-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTeam developers