Class: Fly::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Fly::Generators::ConfigGenerator
- Includes:
- FlyIoRails::Utils
- Defined in:
- lib/generators/fly/config_generator.rb
Instance Method Summary collapse
-
#generate_config ⇒ Object
despite its name, this is a debug tool that will dump the config.
Methods included from FlyIoRails::Utils
Instance Method Details
#generate_config ⇒ Object
despite its name, this is a debug tool that will dump the config
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/fly/config_generator.rb', line 8 def generate_config action = Fly::Actions.new(@app, ) config = {} action.instance_variables.sort.each do |name| config[name] = action.instance_variable_get(name) end pp config end |