chicken_soup 0.5.0 → 0.5.2
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
######################################################################
|
2
2
|
# RVM DEFAULTS #
|
3
3
|
######################################################################
|
4
|
-
ChickenSoup::RVM_INFO_FORMAT = /^rvm.+\s(([a-zA-Z0-9\-\._]+)(?:@([a-zA-Z0-9\-\._]+))?)/
|
4
|
+
::ChickenSoup::RVM_INFO_FORMAT = /^rvm.+\s(([a-zA-Z0-9\-\._]+)(?:@([a-zA-Z0-9\-\._]+))?)/
|
5
5
|
|
6
6
|
Capistrano::Configuration.instance(:must_exist).load do
|
7
7
|
namespace :capabilities do
|
@@ -4,13 +4,13 @@
|
|
4
4
|
require 'mail'
|
5
5
|
|
6
6
|
Capistrano::Configuration.instance(:must_exist).load do |cap|
|
7
|
-
after 'deploy:cleanup', 'notify:
|
7
|
+
after 'deploy:cleanup', 'notify:via_email'
|
8
8
|
|
9
9
|
namespace :notify do
|
10
10
|
desc <<-DESC
|
11
11
|
[internal] Sends a notification via email once a deployment is complete.
|
12
12
|
DESC
|
13
|
-
task :
|
13
|
+
task :via_email do
|
14
14
|
Mail.defaults do
|
15
15
|
delivery_method cap[:email_notifier_mail_method], cap[:email_notifier_mail_options]
|
16
16
|
end
|
@@ -2,22 +2,24 @@
|
|
2
2
|
# GIT NOTIFIER TASKS #
|
3
3
|
######################################################################
|
4
4
|
Capistrano::Configuration.instance(:must_exist).load do
|
5
|
-
|
5
|
+
after 'deploy:cleanup', 'notify:via_git:tag'
|
6
6
|
|
7
|
-
namespace :
|
8
|
-
|
9
|
-
|
7
|
+
namespace :notify do
|
8
|
+
namespace :via_git do
|
9
|
+
desc <<-DESC
|
10
|
+
Tags the deployed Git commit with the timestamp and environment it was deployed to.
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
The tag is auto-pushed to whatever `remote` is set to as well as `origin`.
|
13
|
+
Tag push happens in the background so it won't slow down deployment.
|
14
|
+
DESC
|
15
|
+
task :tag do
|
16
|
+
timestamp_string_without_seconds = Time.now.strftime("%Y%m%d%H%M")
|
17
|
+
tag_name = "deployed_to_#{rails_env}_#{timestamp_string_without_seconds}"
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
`git tag -a -m "Tagging deploy to #{rails_env} at #{timestamp_string_without_seconds}" #{tag_name} #{branch}`
|
20
|
+
`git push #{remote} --tags > /dev/null 2>&1 &`
|
21
|
+
`git push origin --tags > /dev/null 2>&1 &`
|
22
|
+
end
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
data/lib/chicken_soup/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: chicken_soup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- thekompanee
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-08-
|
14
|
+
date: 2011-08-10 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|