Class: Heroku2Dokku::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku2dokku.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/heroku2dokku.rb', line 8

def run(args)
  case args[0]
  when "all"
    app
    config
    domains
    checks
  when "app"
    app
  when "checks"
    checks
  when "config"
    config
  when "domains"
    domains
  else
    puts %(Usage: heroku2dokku COMMAND

Options:
all
app
checks
config
domains

)
    exit 2
  end
end