Class: PanDomain::CLI

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

Instance Method Summary collapse

Instance Method Details

#generate_migrationsObject



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_seedsObject



49
50
51
# File 'lib/pan_domain/cli.rb', line 49

def generate_seeds
  system 'rake human_domain:db:seed'
end

#installObject



35
36
37
# File 'lib/pan_domain/cli.rb', line 35

def install
  system 'rake pan_domain:install'
end

#versionObject



9
10
11
# File 'lib/pan_domain/cli.rb', line 9

def version
  say "PanDomain #{VERSION}"
end