Class: Guard::Bosh::GlobalPropertiesLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/bosh/global_properties_loader.rb

Overview

Properties defined at the top-level of the manifest. These may be shared by multiple BOSH jobs.

Instance Method Summary collapse

Constructor Details

#initialize(deployment_manifest:) ⇒ GlobalPropertiesLoader

Returns a new instance of GlobalPropertiesLoader.



6
7
8
# File 'lib/guard/bosh/global_properties_loader.rb', line 6

def initialize(deployment_manifest:)
  @deployment_manifest = deployment_manifest
end

Instance Method Details

#load_properties(_) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/guard/bosh/global_properties_loader.rb', line 10

def load_properties(_)
  global_properties = @deployment_manifest['properties']
  if global_properties.nil?
    {}
  else
    global_properties
  end
end