Class: Afterlife::Deploy::Cli
- Inherits:
-
Thor
- Object
- Thor
- Afterlife::Deploy::Cli
- Includes:
- BaseCli
- Defined in:
- lib/afterlife/deploy/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from BaseCli
#fatal!, #log_error, #log_info, #log_interrupted, #log_success, #sure?
Class Method Details
.exit_on_failure? ⇒ Boolean
7 8 9 |
# File 'lib/afterlife/deploy/cli.rb', line 7 def self.exit_on_failure? true end |
Instance Method Details
#call(stage) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/afterlife/deploy/cli.rb', line 12 def call(stage) Afterlife.cli = self Deploy.call(stage, ) do |deployment| setup_deploy(deployment) process_deploy(deployment) Notify.call(Afterlife.current_repo.name, Afterlife.current_stage.name) end rescue Afterlife::Error => e fatal!(e.) end |