Class: Dynomite::CLI

Inherits:
Command show all
Defined in:
lib/dynomite/cli.rb

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#completion(*params) ⇒ Object



33
34
35
# File 'lib/dynomite/cli.rb', line 33

def completion(*params)
  Completer.new(CLI, *params).run
end

#completion_scriptObject



39
40
41
# File 'lib/dynomite/cli.rb', line 39

def completion_script
  Completer::Script.generate
end

#generate(name) ⇒ Object



15
16
17
# File 'lib/dynomite/cli.rb', line 15

def generate(name)
  Migration::Generator.new(name, options).generate
end

#installObject



27
28
29
# File 'lib/dynomite/cli.rb', line 27

def install
  Install.new.run
end

#migrateObject



5
6
7
# File 'lib/dynomite/cli.rb', line 5

def migrate
  Migration::Runner.new(options).run
end

#seedObject



21
22
23
# File 'lib/dynomite/cli.rb', line 21

def seed
  Seed.new.run
end

#versionObject



44
45
46
# File 'lib/dynomite/cli.rb', line 44

def version
  puts VERSION
end