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

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from Nanoc::CLI::CommandRunner

#call, #debug?, #in_site_dir?, #load_site, #site, #site=

Instance Method Details

#runObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def run
  load_site(preprocess: true)

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