Class: Nanoc::CLI::Commands::Deploy

Inherits:
Nanoc::CLI::CommandRunner
  • Object
show all
Defined in:
lib/nanoc/cli/commands/deploy.rb

Instance Method Summary collapse

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/nanoc/cli/commands/deploy.rb', line 15

def run
  prepare

  if options[:list-deployers']
    list_deployers
  elsif options[:list]
    list_deploy_configs
  else
    deploy
  end
end