Class: TestData::CableYamlGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/test_data/cable_yaml_generator.rb

Instance Method Summary collapse

Instance Method Details

#callObject



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
      <<~YAML

        test_data:
          adapter: async
      YAML
    end
  end
end