Class: Activerse::Generators::FillGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Activerse::Generators::FillGenerator
- Defined in:
- lib/generators/activerse/fill_generator.rb
Instance Method Summary collapse
Instance Method Details
#fill_out ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/activerse/fill_generator.rb', line 8 def fill_out current_credentials = YAML.safe_load(Rails.application.credentials.read) current_credentials.symbolize_keys! dsl = Activerse::Dsl.new(current_credentials) dsl.instance_eval(&Activerse::Configs.internal_structure) Rails.application.credentials.write YAML.dump(dsl.instance_eval("@credentials")) end |