Class: TwoPercent::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TwoPercent::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/two_percent/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
16 17 18 |
# File 'lib/generators/two_percent/install/install_generator.rb', line 16 def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end |
Instance Method Details
#copy_initializer ⇒ Object
37 38 39 |
# File 'lib/generators/two_percent/install/install_generator.rb', line 37 def copy_initializer template "two_percent.rb.erb", "config/initializers/two_percent.rb" end |
#copy_migrations ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/generators/two_percent/install/install_generator.rb', line 20 def copy_migrations migration_template( "create_two_percent_scim_users.rb.erb", "db/migrate/create_two_percent_scim_users.rb" ) migration_template( "create_two_percent_scim_groups.rb.erb", "db/migrate/create_two_percent_scim_groups.rb" ) migration_template( "create_two_percent_scim_group_memberships.rb.erb", "db/migrate/create_two_percent_scim_group_memberships.rb" ) end |
#show_readme ⇒ Object
41 42 43 |
# File 'lib/generators/two_percent/install/install_generator.rb', line 41 def show_readme readme "INSTALL_README" if behavior == :invoke end |