Class: Nanoc::Deploying::CommandRunners::Deploy Private

Inherits:
CLI::CommandRunner
  • Object
show all
Defined in:
lib/nanoc/deploying/command_runners/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

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.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/nanoc/deploying/command_runners/deploy.rb', line 7

def run
  @site = load_site
  Nanoc::Core::Compiler.new_for(@site).run_until_preprocessed

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