Class: Pu::Gem::AnnotatedGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
PlutoniumGenerators::Generator
Defined in:
lib/generators/pu/gem/annotated/annotated_generator.rb

Instance Method Summary collapse

Methods included from PlutoniumGenerators::Generator

derive_association_name, find_shared_namespace, included

Methods included from PlutoniumGenerators::Concerns::Logger

#debug, #error, #exception, #info, #success, #warn

Methods included from PlutoniumGenerators::Concerns::Config

#read_config, #write_config

Instance Method Details

#startObject



14
15
16
17
18
19
20
# File 'lib/generators/pu/gem/annotated/annotated_generator.rb', line 14

def start
  bundle "annotated", group: :development
  generate "annotated:install"
  copy_file "lib/tasks/auto_annotate_models.rake", force: true
rescue => e
  exception "#{self.class} failed:", e
end