Class: Boring::Whenever::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Boring::Whenever::InstallGenerator
- Defined in:
- lib/generators/boring/whenever/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_schedule_file ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/generators/boring/whenever/install/install_generator.rb', line 16 def add_schedule_file say "Create schedule.rb file", :green Bundler.with_unbundled_env do run "bundle exec wheneverize ." end end |
#add_whenever_gem ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/boring/whenever/install/install_generator.rb', line 8 def add_whenever_gem say "Adding whenever gem", :green Bundler.with_unbundled_env do run "bundle add whenever" end end |