Class: Miam::DSL::Converter
- Inherits:
-
Object
- Object
- Miam::DSL::Converter
- Defined in:
- lib/miam/dsl/converter.rb
Class Method Summary collapse
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(exported, options = {}) ⇒ Converter
constructor
A new instance of Converter.
Constructor Details
#initialize(exported, options = {}) ⇒ Converter
Returns a new instance of Converter.
6 7 8 9 |
# File 'lib/miam/dsl/converter.rb', line 6 def initialize(exported, = {}) @exported = exported @options = end |
Class Method Details
.convert(exported, options = {}) ⇒ Object
2 3 4 |
# File 'lib/miam/dsl/converter.rb', line 2 def self.convert(exported, = {}) self.new(exported, ).convert end |
Instance Method Details
#convert ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/miam/dsl/converter.rb', line 11 def convert [ output_users(@exported[:users]), output_groups(@exported[:groups]), output_roles(@exported[:roles]), output_instance_profiles(@exported[:instance_profiles]), output_managed_policies(@exported[:policies]), ].join("\n") end |