Class: PanDomain::CLI
- Inherits:
-
Thor
- Object
- Thor
- PanDomain::CLI
- Defined in:
- lib/pan_domain/cli.rb
Instance Method Summary collapse
Instance Method Details
#generate_migrations ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/pan_domain/cli.rb', line 40 def generate_migrations say_status 'start', 'Generate all migrations' system 'rails g human_domain:generate:migrations' say_status 'finish', 'Generate all migrations' end |
#generate_seeds ⇒ Object
49 50 51 |
# File 'lib/pan_domain/cli.rb', line 49 def generate_seeds system 'rake human_domain:db:seed' end |
#install ⇒ Object
35 36 37 |
# File 'lib/pan_domain/cli.rb', line 35 def install system 'rake pan_domain:install' end |
#version ⇒ Object
9 10 11 |
# File 'lib/pan_domain/cli.rb', line 9 def version say "PanDomain #{VERSION}" end |