prima-twig 0.30.7 → 0.30.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +3 -1
  3. data/lib/command.rb +3 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6266b5299a6a98370521a273ed5e601ebd4916c
4
- data.tar.gz: cbe4dd29c95767751d72ac1fe7eebe407a0bd648
3
+ metadata.gz: 2fa7fa954d0a14d61471ac077061f812eaaeb97d
4
+ data.tar.gz: 9aa99b390fc83c6d01d4fafa6910692c97d3ca33
5
5
  SHA512:
6
- metadata.gz: 3cceab7eef63b46a5349803d5b1d3c6dc413d5f644aaebed028781a312af13d400a7345a516fa7e2d37c498b03edf00aa0149dfdaafb0895ba624ef7c56dd748
7
- data.tar.gz: 5e13f7cf662f1ccb1d4a92825c4453bb6171973b583f33a711949cfe137ae5e8146dfba26d3c7ea32372a2e99e385a523207951117d33b3c44c0bc4d032a8ff8
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?, 'Gemma prima-twig aggiornata, lancia nuovamente il comando'.red, 'gem update prima-twig'
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 = 'echo > /dev/null')
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
- system command
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 = 'echo > /dev/null')
61
+ def stop_unless(check, msg, command = '')
62
62
  stop_if !check, msg, command
63
63
  end
64
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.7
4
+ version: 0.30.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino