Class: Bosh::Cli::ManifestWarnings

Inherits:
Object
  • Object
show all
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

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

#reportObject



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