cheftacular 2.7.1 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cheftacular/actions/check.rb +16 -4
- data/lib/cheftacular/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87110df9f5a710c9cb37d8e5deb6c307c58e5382
|
4
|
+
data.tar.gz: ec5cab59e6965577aa4cb5730ae101a7cbbf48bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ed413df125694ecaa9daaf930e9edc3d9302f9369a7efeb13cd342f857eddf40f9d177d62b73fd702e550fc34f785017cefb0d721c09899218390b42b5182fa
|
7
|
+
data.tar.gz: a946af42bd4eb240cb3f6296aa675102e6cd06c2ea720a50ab93c5063a1245bf1caec35b58f97344561471e7d454be320ad3b38f1b839d94cc284362c87aebb4
|
@@ -9,7 +9,9 @@ class Cheftacular
|
|
9
9
|
end
|
10
10
|
|
11
11
|
class Action
|
12
|
-
def check commit_hash={}
|
12
|
+
def check commit_hash={}, have_revisions=false
|
13
|
+
@config['filesystem'].cleanup_file_caches('current-nodes')
|
14
|
+
|
13
15
|
nodes = @config['getter'].get_true_node_objects
|
14
16
|
|
15
17
|
#this must always precede on () calls so they have the instance variables they need
|
@@ -20,12 +22,22 @@ class Cheftacular
|
|
20
22
|
|
21
23
|
puts("Beginning commit check run for #{ n.name } (#{ n.public_ipaddress }) on role #{ options['role'] }") unless options['quiet']
|
22
24
|
|
23
|
-
commit_hash[n.name]
|
25
|
+
commit_hash[n.name] = start_commit_check( n.name, n.public_ipaddress, options, locs, cheftacular)
|
26
|
+
commit_hash[n.name]['branch'] = n.normal_attributes[options['repository']]['repo_branch'] if n.normal_attributes.has_key?(options['repository'])
|
27
|
+
have_revisions = true if commit_hash[n.name].has_key?('branch')
|
24
28
|
end
|
25
29
|
|
26
|
-
puts "\n#{ 'name'.ljust(21) }#{ 'deployed_on'.ljust(22) } #{ 'commit'.ljust(40) }"
|
30
|
+
puts "\n#{ 'name'.ljust(21) }#{ 'deployed_on'.ljust(22) } #{ 'commit'.ljust(40) } #{'revision'.ljust(30) if have_revisions }"
|
27
31
|
nodes.each do |n|
|
28
|
-
|
32
|
+
unless commit_hash[n.name]['name'].blank?
|
33
|
+
out = []
|
34
|
+
out << n.name.ljust(20, '_')
|
35
|
+
out << commit_hash[n.name]['time'].ljust(21)
|
36
|
+
out << commit_hash[n.name]['name'].ljust(39)
|
37
|
+
out << commit_hash[n.name]['branch'].ljust(30) if commit_hash[n.name].has_key?('branch')
|
38
|
+
|
39
|
+
puts out.join(' ')
|
40
|
+
end
|
29
41
|
end
|
30
42
|
end
|
31
43
|
end
|
data/lib/cheftacular/version.rb
CHANGED