prima-twig 0.31.57 → 0.31.58

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +18 -16
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b18a583963701c3f8efe58c63e13ee32cc49d5c
4
- data.tar.gz: f733093a74d71445e6160c8679321b19c811c613
3
+ metadata.gz: 75e088f275c0f198fd33d2d55463516d349b0f86
4
+ data.tar.gz: 3b59eec53b20ceab90d61106259ae2cf57980f5d
5
5
  SHA512:
6
- metadata.gz: cccaa629a6936d6cecdf1ed63c1662d421a0981db4367e63079a01b99c934d10f59942bdb1086d347d311c4813eb59fecb0afbfc9643c3ab893457ca21cae06b
7
- data.tar.gz: c18815f60b290021837ec376b201eccce57d177c4262b03f71cb1f7b6f59a1ea6ad1f356b4626ddbb48352296eed5d63236d05f3fc97d7cbb43b2c1cf69cc11c
6
+ metadata.gz: 8a4eb65f6c0a8c6de29fd3f9d9d303013d7c1a7830c4cea260b4909ad64c772814c610248b34a20c84783e90e1087c7a578073a44bc0a157443d3299f167f830
7
+ data.tar.gz: 4414e4ee22ef226e6777c0d50d2682ca778ad17fd22dbe1e4d3b36651efea69adc2521ff73a13f2962fc66b0eaf1a4638078c4e7daaba3b1aee58d1ddb2d54aa
data/bin/twig-feature CHANGED
@@ -60,14 +60,6 @@ class Release
60
60
  deploy_shutdown!
61
61
  elsif 'update' == args[1]
62
62
  deploy_update!
63
- elsif 'aggregator' == args[1]
64
- if args[2] && 'enable' == args[2]
65
- deploy_aggregator_enable!
66
- elsif args[2] && 'disable' == args[2]
67
- deploy_aggregator_disable!
68
- else
69
- stop_for_wrong_args
70
- end
71
63
  else
72
64
  if args[1]
73
65
  select_branches(args[1])
@@ -76,13 +68,21 @@ class Release
76
68
  end
77
69
  deploy_feature!
78
70
  end
71
+ when 'aggregator'
72
+ if 'enable' == args[1]
73
+ aggregator_enable!
74
+ elsif 'disable' == args[1]
75
+ aggregator_disable!
76
+ else
77
+ stop_for_wrong_args
78
+ end
79
79
  else
80
80
  stop_for_wrong_args
81
81
  end
82
82
  end
83
83
 
84
84
  def stop_for_wrong_args
85
- stop_if true, [:wrong_args, ['start', 'finish', 'deploy', 'deploy project_name', 'deploy stop', 'deploy update', 'deploy aggregator enable', 'deploy aggregator disable']]
85
+ stop_if true, [:wrong_args, ['start', 'finish', 'deploy', 'deploy project_name', 'deploy stop', 'deploy update', 'aggregator enable', 'aggregator disable']]
86
86
  end
87
87
 
88
88
  def start_feature!
@@ -97,7 +97,7 @@ class Release
97
97
  exec_step "git checkout -b " + branch_name
98
98
  end
99
99
 
100
- def deploy_aggregator_disable!
100
+ def aggregator_disable!
101
101
  output 'Disable aggregator'
102
102
 
103
103
  output "Recupero le informazioni relative al puntamento dei record DNS..."
@@ -126,7 +126,7 @@ class Release
126
126
  output 'Finito!'.green
127
127
  end
128
128
 
129
- def deploy_aggregator_enable!
129
+ def aggregator_enable!
130
130
  output 'Enable aggregator'
131
131
 
132
132
  output 'Recupero le informazioni relative al puntamento dei record DNS...'
@@ -1970,15 +1970,17 @@ Synopsis
1970
1970
  twig release start
1971
1971
  twig release finish
1972
1972
  twig release deploy
1973
+ twig release aggregator
1973
1974
 
1974
1975
  Description
1975
1976
  -----------
1976
1977
 
1977
- start creates a new feature branch
1978
- finish finishes the feature by merging to dev and master
1979
- deploy deploys the feature branch to a temporary AWS Elastic Beanstalk env
1980
- deploy stop destroys the AWS Elastic Beanstalk env
1981
- deploy update updates a feature branch with current branches
1978
+ start creates a new feature branch
1979
+ finish finishes the feature by merging to dev and master
1980
+ deploy deploys the feature branch to a temporary AWS Elastic Beanstalk env
1981
+ deploy stop destroys the AWS Elastic Beanstalk env
1982
+ deploy update updates a feature branch with current branches
1983
+ aggregator enable/disable directs comparator's staging environments to a qa/staging
1982
1984
 
1983
1985
  Subcommand for Twig: <http://rondevera.github.io/twig/>
1984
1986
  Author: Andrea Usuelli <https://github.com/andreausu>
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.31.57
4
+ version: 0.31.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2018-03-08 00:00:00.000000000 Z
16
+ date: 2018-03-23 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: aws-sdk
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.6.14
217
+ rubygems_version: 2.6.11
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: The Prima twig toolbelt