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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03e280057bbb8ea30fd3f6ad75dc2a789e11a2b5
4
- data.tar.gz: 5fa04d2666c5d63b92a72532ff35f96234f97657
3
+ metadata.gz: 87110df9f5a710c9cb37d8e5deb6c307c58e5382
4
+ data.tar.gz: ec5cab59e6965577aa4cb5730ae101a7cbbf48bc
5
5
  SHA512:
6
- metadata.gz: 5de24ea527e2dac934db6960f7a315b7b32ac5d287af56c10ea384f883834a51e23c0a317c708b1325c0ac34e7f611afe5483eabab2bc514f3a6b002359f440f
7
- data.tar.gz: 3ddc9224829ff89f0f0b530f008bbed2b9453048ee38ee85cb48fff3465c58bc65ab97bedb44bd32bf3add7d4805ca307281527777fc61e05d586672318dbece
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] = start_commit_check( n.name, n.public_ipaddress, options, locs, cheftacular)
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
- puts("#{ n.name.ljust(21, '_') }#{ commit_hash[n.name]['time'].ljust(22) } #{ commit_hash[n.name]['name'].ljust(40) }") unless commit_hash[n.name]['name'].blank?
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
@@ -1,5 +1,5 @@
1
1
  class Cheftacular
2
2
  #major_version.minor_version.bugfixes
3
- VERSION = "2.7.1"
3
+ VERSION = "2.7.2"
4
4
  RUBY_VERSION = "2.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheftacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Alridge