Class: Boring::Whenever::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/boring/whenever/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_schedule_fileObject



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_gemObject



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