Class: ProfileLoader

Inherits:
Object show all
Defined in:
lib/maws/profile_loader.rb

Constant Summary collapse

RESERVED_ROLE_NAMES =
%w(roles lanes name zones aliases settings security_rules)

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ ProfileLoader

Returns a new instance of ProfileLoader.



4
5
6
# File 'lib/maws/profile_loader.rb', line 4

def initialize(config)
  @config = config
end

Instance Method Details

#loadObject



8
9
10
11
12
13
14
15
16
# File 'lib/maws/profile_loader.rb', line 8

def load
  # assumes profile file is known to exist already
  load_profile
  load_roles
  load_security_rules

  exit_on_missing_roles
  create_combined
end