deplomat 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/deplomat.gemspec +2 -2
- data/lib/deplomat/directives.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a14e300c965c64acae0c3e0bcd15ac98e63c7d88ad3a3d049b9a81464f61bce
|
4
|
+
data.tar.gz: 0777d45bd41579e9a2150417333a588b69cc0e4868cd81be487697535c1fd520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e30d3719bbbc0792795b74346ad30add36cad08006ce8701147552d18ed635c91e4ba915214d3a562605a3d4a132884536062556f4fb9cdd5924bd0fe741ad2
|
7
|
+
data.tar.gz: '0978a9f8ab19ee6ee8c42a684d59d169871d3f52d92a46111bb89c8b9c68aca08e7303dd247a32dd9daed5545141564a1734f65cd4b4dd6a6be630ea8a4ee030'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.7
|
data/deplomat.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: deplomat 0.2.
|
5
|
+
# stub: deplomat 0.2.7 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "deplomat".freeze
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.7"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
data/lib/deplomat/directives.rb
CHANGED
@@ -68,11 +68,19 @@ def load_requisites!(counter, requisites_path: "#{Dir.pwd}/deployment_requisites
|
|
68
68
|
number = fn.split("/").last.match(/\A\d+_/).to_a.first&.chomp("_")
|
69
69
|
number ? [number, fn] : nil
|
70
70
|
end
|
71
|
-
|
71
|
+
|
72
|
+
if files
|
73
|
+
files = files.compact # ignore files that don't start with a number
|
72
74
|
.sort { |x,y| x.first <=> y.first } # Sort files according to the number in front of their names
|
73
75
|
.map { |fn| fn.last } # lose the folded Array we used to store the consecutive requisite number
|
74
76
|
.slice(counter..-1) # lose files whose consecutive requisite number is below or equals the counter
|
75
|
-
|
77
|
+
end
|
78
|
+
|
79
|
+
if files && files.size > 0
|
80
|
+
log_requisites_count += "found #{files.size} new requisites."
|
81
|
+
else
|
82
|
+
log_requisites_count += "no files found"
|
83
|
+
end
|
76
84
|
log << log_requisites_count
|
77
85
|
|
78
86
|
files.each do |fn|
|