Class: OpsBackups::ActiveadminGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- OpsBackups::ActiveadminGenerator
- Defined in:
- lib/generators/ops_backups/activeadmin/activeadmin_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_admin_backup ⇒ Object
6 7 8 9 |
# File 'lib/generators/ops_backups/activeadmin/activeadmin_generator.rb', line 6 def copy_admin_backup copy_file "backup.rb", Rails.root.join("app", "admin", "ops_backups", "backup.rb") say "Copied admin/backup.rb to app/admin/ops_backups/backup.rb.", :green end |