Class: Jobshop::CLI::Dummy
- Inherits:
-
Thor
- Object
- Thor
- Jobshop::CLI::Dummy
- Defined in:
- lib/jobshop/cli.rb
Instance Method Summary collapse
Instance Method Details
#create(*args) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/jobshop/cli.rb', line 37 def create(*args) Jobshop::Generators::DummyGenerator.start( args.unshift(Jobshop::DummyApp.path), jobshop_options: { database: "postgresql", skip_gemfile: true, skip_bundle: true, skip_git: true, skip_listen: true, skip_test: true } ) end |
#routes ⇒ Object
57 58 59 60 |
# File 'lib/jobshop/cli.rb', line 57 def routes Dir.chdir(Jobshop::DummyApp.path) exec %Q(rails routes) end |
#seed ⇒ Object
52 53 54 |
# File 'lib/jobshop/cli.rb', line 52 def seed Jobshop::DummyApp.seed end |