Sha256: baaa9469d67e3791d3e2f30819c56d6726a8d82bc63417545224f002c20decfd

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

class OpsBackups::ActiveadminGenerator < Rails::Generators::Base
  source_root File.expand_path("templates", __dir__)

  desc "Copies the ActiveAdmin backup configuration to your application."

  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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ops_backups-0.1.9 lib/generators/ops_backups/activeadmin/activeadmin_generator.rb
ops_backups-0.1.8 lib/generators/ops_backups/activeadmin/activeadmin_generator.rb
ops_backups-0.1.7 lib/generators/ops_backups/activeadmin/activeadmin_generator.rb
ops_backups-0.1.4 lib/generators/ops_backups/activeadmin/activeadmin_generator.rb
ops_backups-0.1.3 lib/generators/ops_backups/activeadmin/activeadmin_generator.rb
ops_backups-0.1.2 lib/generators/ops_backups/activeadmin/activeadmin_generator.rb