This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env ruby | |
| require 'cogito' | |
| require 'humidifier/reservoir' | |
| require 'json' | |
| class PolicyMapper < Humidifier::Reservoir::BaseMapper | |
| attribute :policy do |policy| | |
| { | |
| policy_document: { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class UserMapper < Humidifier::Reservoir::BaseMapper | |
| GROUPS = { | |
| 'eng' => %w[Engineering Testing Deployment], | |
| 'admin' => %w[Management Administration] | |
| } | |
| defaults do |logical_name| | |
| { path: '/reservoir/', user_name: logical_name } | |
| end | 
OlderNewer