ufo 6.0.6 → 6.0.9

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
  SHA256:
3
- metadata.gz: 87344022dcbcd4b41904a181613e3eb4bbe8985577517d9633efb8f2b3795249
4
- data.tar.gz: 7f3d119496e82275a92f0b8b867bb08025c76955de837b33cddb39bdc835466c
3
+ metadata.gz: 1c4e6b0091848fd532fead2674d45a37691cd6e7305beee4bfcf9c2d3fad3ad7
4
+ data.tar.gz: 0506141a6987010eac49ae0e940790de1790914f719e3459b87f45bba3117d56
5
5
  SHA512:
6
- metadata.gz: 8964557bdb9b5a1958f22a3f72f6719de1c9a97fb2b5ca1e4b7961bc61cdb912817147246e86568c21ec2ba10fad0c9e5f5dc53c8bec2d6c92d86221df09711c
7
- data.tar.gz: a12c83ff26e2b0177e2ec9311f07a71fe1b5f9689663e45fd6267edfe4570795c31aab9f6dc06d2e059ae37711bb0017f1a7fce995ad1532aea942d09bbe6961
6
+ metadata.gz: bdd3f4a7ae8a6c258f21e88b791ad8c0afe23fa000c7c891441042dcad1a5d0f53c1e331c3090ace785513e91e7e1ddf323b4e49b65cc6f8598a54175c4d55be
7
+ data.tar.gz: f8b7ed0ec7b0f2f85a7c47579b7800b406c9116e58fbb1dec603aec4d4bc0862de4d6e705433a41744b9d83918c19abc428bb15405559ab898110ea3273959cf
data/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [6.0.9] - 2022-03-10
7
+ - fix config.autoscaling.manual_changes.warning cli help hint
8
+
9
+ ## [6.0.8] - 2022-03-10
10
+ - [#135](https://github.com/tongueroo/ufo/pull/135) improve .ufo/config/boot.rb location
11
+ - change default config.ship.docker.quiet to false
12
+
13
+ ## [6.0.7] - 2022-03-07
14
+ - fix autoscaling.manual_changes.retain check
15
+ - improve Configured autoscaling message
16
+
6
17
  ## [6.0.6] - 2022-03-07
7
18
  - [#134](https://github.com/tongueroo/ufo/pull/134) config.autoscaling.manual_changes.retain support
8
19
  - change default `elb.healthy_threshold_count = 3`
data/lib/ufo/booter.rb CHANGED
@@ -18,7 +18,7 @@ module Ufo
18
18
 
19
19
  def run_hook(env=nil)
20
20
  name = env ? "boot/#{env}" : "boot"
21
- path = "#{Ufo.root}/.ufo/#{name}.rb" # IE: .ufo/boot/dev.rb
21
+ path = "#{Ufo.root}/.ufo/config/#{name}.rb" # IE: .ufo/boot/dev.rb
22
22
  require path if File.exist?(path)
23
23
  end
24
24
 
@@ -21,12 +21,12 @@ module Ufo::Cfn::Stack::Builder::Resources::Scaling
21
21
 
22
22
  private
23
23
  def min_capacity
24
- return autoscaling.min_capacity if vars[:new_stack] && !autoscaling.manual_changes.retain
24
+ return autoscaling.min_capacity if vars[:new_stack] || !autoscaling.manual_changes.retain
25
25
  scalable_target ? scalable_target.min_capacity : autoscaling.min_capacity
26
26
  end
27
27
 
28
28
  def max_capacity
29
- return autoscaling.max_capacity if vars[:new_stack] && !autoscaling.manual_changes.retain
29
+ return autoscaling.max_capacity if vars[:new_stack] || !autoscaling.manual_changes.retain
30
30
  scalable_target ? scalable_target.max_capacity : autoscaling.max_capacity
31
31
  end
32
32
 
data/lib/ufo/cli/scale.rb CHANGED
@@ -46,7 +46,10 @@ class Ufo::CLI
46
46
  r.logical_resource_id == "ScalingTarget"
47
47
  end
48
48
  register_scalable_target(scalable_target)
49
- logger.info "Configured autoscaling to min: #{@min} max: #{@max}"
49
+ to = []
50
+ to << "min: #{@min}" if @min
51
+ to << "max: #{@max}" if @max
52
+ logger.info "Configured autoscaling to #{to.join(' ')}"
50
53
  end
51
54
 
52
55
  def register_scalable_target(scalable_target)
@@ -73,7 +76,7 @@ class Ufo::CLI
73
76
 
74
77
  You can turn off this warning with
75
78
 
76
- config.autoscaling.warning = false
79
+ config.autoscaling.manual_changes.warning = false
77
80
 
78
81
  Or you can use the
79
82
 
data/lib/ufo/config.rb CHANGED
@@ -111,7 +111,7 @@ module Ufo
111
111
 
112
112
  config.ship = ActiveSupport::OrderedOptions.new
113
113
  config.ship.docker = ActiveSupport::OrderedOptions.new
114
- config.ship.docker.quiet = true # only affects ufo ship docker commands output
114
+ config.ship.docker.quiet = false # only affects ufo ship docker commands output
115
115
 
116
116
  config.state = ActiveSupport::OrderedOptions.new
117
117
  config.state.reminder = true
data/lib/ufo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "6.0.6"
2
+ VERSION = "6.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.6
4
+ version: 6.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-07 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-logs