Class: Bosh::Cli::ManifestWarnings
- Defined in:
- lib/cli/manifest_warnings.rb
Constant Summary collapse
- WARNING_MESSAGES =
{ 'resource_pools.[].cloud_properties.spot_bid_price' => <<-EOM AWS spot instance support is an experimental feature. Please log an issue at https://github.com/cloudfoundry/bosh/issues if you run into any issues related to spot instances. EOM }
Instance Method Summary collapse
-
#initialize(manifest) ⇒ ManifestWarnings
constructor
A new instance of ManifestWarnings.
- #report ⇒ Object
Constructor Details
#initialize(manifest) ⇒ ManifestWarnings
Returns a new instance of ManifestWarnings.
10 11 12 |
# File 'lib/cli/manifest_warnings.rb', line 10 def initialize(manifest) @manifest = manifest end |
Instance Method Details
#report ⇒ Object
14 15 16 17 18 |
# File 'lib/cli/manifest_warnings.rb', line 14 def report WARNING_MESSAGES.each do |keypath, warning| say(warning.make_yellow) if keypath_exists?(manifest, keypath.split('.')) end end |