class Jobshop::Generators::CanaryGenerator
Public Class Methods
source_paths()
click to toggle source
# File lib/generators/jobshop/canary/canary_generator.rb, line 66 def self.source_paths [ Jobshop::Generators::CanaryGenerator.source_root, Rails::Generators::AppGenerator.source_root ] end
Public Instance Methods
create_boot_file()
click to toggle source
# File lib/generators/jobshop/canary/canary_generator.rb, line 73 def create_boot_file template "config/boot.rb.tt" end
finish_template()
click to toggle source
Calls superclass method
Jobshop::Generators::AppGenerator#finish_template
# File lib/generators/jobshop/canary/canary_generator.rb, line 77 def finish_template build :bin_jobshop build :config_database_yml build :db_migrate build :expose_mailer_previews build :localhost_tld_length build :dev_cert super end
run_bundle()
click to toggle source
Calls superclass method
Jobshop::Generators::AppGenerator#run_bundle
# File lib/generators/jobshop/canary/canary_generator.rb, line 87 def run_bundle super return if options[:pretend] bundle_command("exec rails db:drop:all") bundle_command("exec rails db:create") bundle_command("exec rails db:migrate") end
Protected Instance Methods
get_builder_class()
click to toggle source
# File lib/generators/jobshop/canary/canary_generator.rb, line 96 def get_builder_class Jobshop::CanaryBuilder end