Class: Migrant::CLI

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



19
20
21
22
# File 'lib/migrant/cli.rb', line 19

def destroy
  load_config(options.environment)
  @environment.destroy
end

#infoObject



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

def info
  load_config(options.environment)
  @environment.info
end

#initObject



6
7
8
# File 'lib/migrant/cli.rb', line 6

def init

end

#upObject



12
13
14
15
# File 'lib/migrant/cli.rb', line 12

def up
  load_config(options.environment)
  @environment.up
end