joshmn / caffeinate

A Rails engine for drip campaigns/scheduled sequences and periodical support. Works with ActionMailer, and other things.

Home Page:https://caffeinate.email

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not find generator 'caffeinate:install'.

davidflores2 opened this issue · comments

After bundling the gem into my rails 6.0.3 project, I try to run the generator and I'm getting this error Could not find generator 'caffeinate:install'. Any idea how to overcome it?

Hi David,

So sorry I'm late, I didn't see this somehow!

Just tried on both 6.1 and 6.0.3:

➜  ctest git:(master) ✗ rails g caffeinate:install
      create  config/initializers/caffeinate.rb
      create  app/drippers/application_dripper.rb
      insert  config/routes.rb
      create  db/migrate/20210606180714_create_caffeinate_campaigns.rb
      create  db/migrate/20210606180715_create_caffeinate_campaign_subscriptions.rb
      create  db/migrate/20210606180716_create_caffeinate_mailings.rb
➜  ctest git:(master) ✗ rails -v
Rails 6.1.3.2
➜  ctest git:(master) ✗ rails g caffeinate:install
Running via Spring preloader in process 15889
      create  config/initializers/caffeinate.rb
      create  app/drippers/application_dripper.rb
      insert  config/routes.rb
      create  db/migrate/20210606180911_create_caffeinate_campaigns.rb
      create  db/migrate/20210606180912_create_caffeinate_campaign_subscriptions.rb
      create  db/migrate/20210606180913_create_caffeinate_mailings.rb
➜  ctest git:(master) ✗ rails -v
Rails 6.0.3.7

Can you provide the version of Caffeinate you have installed? cat Gemfile.lock | grep caffeinate should be enough for me to discern what's going on.