Sha256: 89c5c600b11ca8bf22665e97e043a924392518a4ab227cdcac27f4ab86500309

Contents?: true

Size: 893 Bytes

Versions: 36

Compression:

Stored size: 893 Bytes

Contents

module Connector
  module Generators
    class ComplexEntityGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      def copy_example_files
        copy_file 'complex_entity_example/contact_and_lead.rb', 'app/models/entities/example_contact_and_lead.rb'

        copy_file 'complex_entity_example/contact.rb', 'app/models/entities/sub_entities/example_contact.rb'
        copy_file 'complex_entity_example/contact_mapper.rb', 'app/models/entities/sub_entities/example_contact_mapper.rb'

        copy_file 'complex_entity_example/lead.rb', 'app/models/entities/sub_entities/example_lead.rb'
        copy_file 'complex_entity_example/lead_mapper.rb', 'app/models/entities/sub_entities/example_lead_mapper.rb'

        copy_file 'complex_entity_example/person.rb', 'app/models/entities/sub_entities/example_person.rb'
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.2.1 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.2.0 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.1.3 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.1.2 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.1.1 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.1.0 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC12 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC11 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC10 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC8 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC9 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC7 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC6 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC5 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC4 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC3 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC2 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.2.pre.RC1 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.1 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0 lib/generators/connector/complex_entity_generator.rb