Class: Fly::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
FlyIoRails::Utils
Defined in:
lib/generators/fly/config_generator.rb

Instance Method Summary collapse

Methods included from FlyIoRails::Utils

#create_app, tee, #tee

Instance Method Details

#generate_configObject

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, options)

  config = {}
  action.instance_variables.sort.each do |name|
    config[name] = action.instance_variable_get(name)
  end

  pp config
end