chicken_soup 0.5.2 → 0.5.3
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.
- data/lib/chicken_soup/capabilities/git/git-defaults.rb +0 -2
- data/lib/chicken_soup/capabilities/svn/svn-tasks.rb +7 -7
- data/lib/chicken_soup/global.rb +4 -0
- data/lib/chicken_soup/notifiers/email/email-checks.rb +1 -2
- data/lib/chicken_soup/notifiers/email/presenter.rb +1 -1
- data/lib/chicken_soup/notifiers/git/git-tasks.rb +6 -0
- data/lib/chicken_soup/version.rb +1 -1
- metadata +1 -1
@@ -14,8 +14,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
14
14
|
set(:branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't determine current branch") }
|
15
15
|
set(:remote) { `git remote`.match(/(\S+)\s/m)[1] || raise("Couldn't determine default remote repository") }
|
16
16
|
ssh_options[:forward_agent] = true
|
17
|
-
|
18
|
-
set(:vc_log) { `git log #{previous_revision}..#{current_revision} --pretty=format:%ai:::%an:::%s` }
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
######################################################################
|
2
2
|
# SUBVERSION TASKS #
|
3
3
|
######################################################################
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
DESC
|
8
|
-
task :log do
|
9
|
-
set :vc_log, `svn log -r #{previous_revision.to_i + 1}:#{current_revision}`
|
10
|
-
end
|
4
|
+
module ChickenSoup
|
5
|
+
def vc_log
|
6
|
+
`svn log -r #{previous_revision.to_i + 1}:#{current_revision}`
|
11
7
|
end
|
12
8
|
end
|
9
|
+
|
10
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
11
|
+
# Implement me!
|
12
|
+
end
|
data/lib/chicken_soup/global.rb
CHANGED
@@ -14,8 +14,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
14
14
|
:email_notifier_internal_recipients,
|
15
15
|
:email_notifier_domain,
|
16
16
|
:email_notifier_username,
|
17
|
-
:email_notifier_password
|
18
|
-
:vc_log
|
17
|
+
:email_notifier_password
|
19
18
|
]
|
20
19
|
|
21
20
|
abort "You must specify either internal or client recipients in order to use the email notifier." if email_notifier_client_recipients.empty? && email_notifier_internal_recipients.empty?
|
@@ -1,6 +1,12 @@
|
|
1
1
|
######################################################################
|
2
2
|
# GIT NOTIFIER TASKS #
|
3
3
|
######################################################################
|
4
|
+
module ChickenSoup
|
5
|
+
def vc_log
|
6
|
+
`git log #{previous_revision}..#{current_revision} --pretty=format:%ai:::%an:::%s`
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
4
10
|
Capistrano::Configuration.instance(:must_exist).load do
|
5
11
|
after 'deploy:cleanup', 'notify:via_git:tag'
|
6
12
|
|
data/lib/chicken_soup/version.rb
CHANGED