capistrano-commons 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/capistrano/commons/recipes/tags.rb +23 -0
- data/lib/capistrano/commons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWJjN2JhZDA4ZDUwNzI4OTYwYjAwZTYyZjQxYzcxZDVkZDdkMmQ1OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODAyYmUxOTczYzRiMzdiZmVjOWQ3MTc3OGExZjA3MmUzMjcwMmE5YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzcxMjk3OTYzMjc3ZTQxZGRlZTlkNWFjZGY2ZjkwOWFlZGQxYWQ5ZmFiODRk
|
10
|
+
ZjBmMjQ5OWMyNjgxMDA3OTAyOGFlODU0NDJlNTk2YTAwNzAyMDk1MzVjZmFj
|
11
|
+
YTVhMjExZjRjMDczMzllYzlhOWE4ZGM4ZDkxZmE3ZWM2YzU2MzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjdjNTE2OGE1MzE1MTFmMTFlNzk4MzgzMjM4M2NmM2Q2Y2Y4YjM3ZjlhZWEw
|
14
|
+
ODU2MTdjYWI0YTNlM2MxOTJhZGUyMTRiZWQ5MDRlZGJkZjhiMjUzOTFhOGY0
|
15
|
+
OTE0ODI2Njk3NDc5OTAxYWEyNzUyZGU1MGRhMmZlNTlhZjI2YWI=
|
@@ -1,5 +1,28 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
2
|
|
3
|
+
class Array
|
4
|
+
def count_by(&block)
|
5
|
+
groups = self.group_by(&block)
|
6
|
+
groups.each { |key, group| groups[key] = group.size }
|
7
|
+
end
|
8
|
+
|
9
|
+
def counts
|
10
|
+
count_by { |o| o }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def github_commit_link(sha)
|
15
|
+
"https://github.com/#{fetch(:github_project)}/commit/#{sha}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def github_pullrequest_link(pr)
|
19
|
+
"https://github.com/#{fetch(:github_project)}/pull/#{pr}"
|
20
|
+
end
|
21
|
+
|
22
|
+
def github_compare_link(a, b)
|
23
|
+
"https://github.com/#{fetch(:github_project)}/compare/#{a}...#{b}"
|
24
|
+
end
|
25
|
+
|
3
26
|
namespace :deploy do
|
4
27
|
|
5
28
|
desc "Tag the release"
|