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.0.0.pre.RC13 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC12 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC11 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC10 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC9 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC8 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-1.5.0 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC7 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC6 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC5 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC4 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC3 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC2 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-2.0.0.pre.RC1 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-1.4.0 lib/generators/connector/complex_entity_generator.rb
maestrano-connector-rails-1.3.5 lib/generators/connector/complex_entity_generator.rb