Class: TestData::CableYamlGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TestData::CableYamlGenerator
- Defined in:
- lib/generators/test_data/cable_yaml_generator.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generators/test_data/cable_yaml_generator.rb', line 6 def call unless Configurators::CableYaml.new.verify.looks_good? inject_into_file "config/cable.yml", before: BEFORE_TEST_STANZA_REGEX do "\n test_data:\n adapter: async\n YAML\n end\n end\nend\n" |