Class: Middleman::Cli::DeployWithNotifications

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/middleman-deploy-with-notifications/commands.rb,
lib/middleman-deploy-with-notifications/notifications.rb

Overview

This class provides a “deploy” command for the middleman CLI.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Tell Thor to exit with a nonzero exit code on failure



22
23
24
# File 'lib/middleman-deploy-with-notifications/commands.rb', line 22

def self.exit_on_failure?
  true
end

Instance Method Details

#deployObject



31
32
33
34
35
# File 'lib/middleman-deploy-with-notifications/commands.rb', line 31

def deploy
  # build before deploys
  Middleman::Cli::Build.new.build
  send("deploy_#{self.deploy_options.method}")
end