Class: Bosh::Cli::Command::VerifyManifest
- Inherits:
-
Base
- Object
- Base
- Bosh::Cli::Command::VerifyManifest
- Includes:
- BoshVerifyManifest::Assertions, MiniTest::Assertions
- Defined in:
- lib/bosh/cli/commands/verify.rb
Instance Method Summary collapse
Methods included from BoshVerifyManifest::Assertions
#assert_declares_all_resource_pools, #assert_fills_resource_pools, #assert_has_name, #assert_job_addresses_are_appropriate, #assert_range_includes_gateway, #assert_specifies_director_uuid, #assert_subnet_addresses_in_range, #assert_subnet_ranges_do_not_overlap, #assert_subnets_are_consistent, #refute_exceeds_resource_pools
Methods included from BoshVerifyManifest::Assertions::Helpers
#addresses_in_range?, #network, #pool_names, #pool_sizes, #pool_usage, #undeclared_pools
Instance Method Details
#manifest ⇒ Object
11 12 13 |
# File 'lib/bosh/cli/commands/verify.rb', line 11 def manifest @manifest ||= YAML::load(File.read(deployment)) end |
#verify_manifest ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/bosh/cli/commands/verify.rb', line 17 def verify_manifest deployment_required begin assert_has_name(manifest) assert_specifies_director_uuid(manifest) assert_subnets_are_consistent(manifest['networks']) assert_job_addresses_are_appropriate(manifest) assert_declares_all_resource_pools(manifest) refute_exceeds_resource_pools(manifest) assert_fills_resource_pools(manifest) rescue MiniTest::Assertion => a err a.to_s end end |