Class: DuodealerApp::Generators::RotateDuodealerTokenJobGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/duodealer_app/rotate_duodealer_token_job/rotate_duodealer_token_job_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_rotate_duodealer_token_jobObject



8
9
10
11
# File 'lib/generators/duodealer_app/rotate_duodealer_token_job/rotate_duodealer_token_job_generator.rb', line 8

def add_rotate_duodealer_token_job
  copy_file("rotate_duodealer_token_job.rb", "app/jobs/duodealer/rotate_duodealer_token_job.rb")
  copy_file("rotate_duodealer_token.rake", "lib/tasks/duodealer/rotate_duodealer_token.rake")
end