Class: Jobshop::CLI::Dev

Inherits:
Thor
  • Object
show all
Defined in:
lib/jobshop/cli.rb

Instance Method Summary collapse

Instance Method Details

#reset(*args) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/jobshop/cli.rb', line 78

def reset(*args)
  Jobshop::Generators::DummyGenerator.start(
    args.unshift(Jobshop::DummyApp.path),
    jobshop_options: {
      database: "postgresql",
      skip_bundle: true,
      skip_gemfile: true,
      skip_git: true,
      skip_listen: true,
      skip_test: true
    }
  )
end

#routesObject



98
99
100
101
# File 'lib/jobshop/cli.rb', line 98

def routes
  Dir.chdir(Jobshop::DummyApp.path)
  exec %Q(rails routes)
end

#seedObject



93
94
95
# File 'lib/jobshop/cli.rb', line 93

def seed
  Jobshop::DummyApp.seed
end