prima-twig 0.30.7 → 0.30.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-feature +3 -1
- data/lib/command.rb +3 -3
- 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: 2fa7fa954d0a14d61471ac077061f812eaaeb97d
|
4
|
+
data.tar.gz: 9aa99b390fc83c6d01d4fafa6910692c97d3ca33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753cdd83b1b1bb45dead7ab2127bdaccd85ec777fcb9e881f9fd5e30ed22f4419d50643bb867d46f4fe92fa2a4b136534eeb22c285355e4dbf50271d5c520442
|
7
|
+
data.tar.gz: e23df859392f470090573988898375695fff36985fbf60bd9aff7468ad1573590f503366d239901d07da1d05b7d659b30fcd40793636eb9e44853305e91200e7
|
data/bin/twig-feature
CHANGED
@@ -16,7 +16,9 @@ class Release
|
|
16
16
|
def initialize
|
17
17
|
@prima = Prima.new
|
18
18
|
output 'Controllo se ci sono aggiornamenti da fare...'
|
19
|
-
stop_unless `gem outdated`.lines.grep(/^prima-twig \(.*\)/).empty?,
|
19
|
+
stop_unless `gem outdated`.lines.grep(/^prima-twig \(.*\)/).empty?,
|
20
|
+
'Devi aggiornare la gemma prima-twig!'.red,
|
21
|
+
"gem update prima-twig && twig feature #{ARGV.join ' '}"
|
20
22
|
@cf = Aws::CloudFormation::Client.new
|
21
23
|
@alb = Aws::ElasticLoadBalancingV2::Client.new
|
22
24
|
@ec2 = Aws::EC2::Client.new
|
data/lib/command.rb
CHANGED
@@ -18,7 +18,7 @@ module Command
|
|
18
18
|
puts 'twig binaries > '.black + msg
|
19
19
|
end
|
20
20
|
|
21
|
-
def stop_if(check, msg, command = '
|
21
|
+
def stop_if(check, msg, command = '')
|
22
22
|
if check
|
23
23
|
output_msg =
|
24
24
|
case msg
|
@@ -29,7 +29,7 @@ module Command
|
|
29
29
|
else
|
30
30
|
msg
|
31
31
|
end
|
32
|
-
|
32
|
+
command.empty? || exec(command)
|
33
33
|
puts 'there was a problem > '.red + output_msg
|
34
34
|
exit(1)
|
35
35
|
end
|
@@ -58,7 +58,7 @@ module Command
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
def stop_unless(check, msg, command = '
|
61
|
+
def stop_unless(check, msg, command = '')
|
62
62
|
stop_if !check, msg, command
|
63
63
|
end
|
64
64
|
|