Class: CapistranoMulticonfigParallel::CLI
- Inherits:
-
Object
- Object
- CapistranoMulticonfigParallel::CLI
- Defined in:
- lib/capistrano_multiconfig_parallel/cli.rb
Overview
this is the class that will be invoked from terminal , and willl use the invoke task as the primary function.
Class Method Summary collapse
Class Method Details
.start ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/capistrano_multiconfig_parallel/cli.rb', line 37 def self.start if $stdin.isatty $stdin.sync = true end if $stdout.isatty $stdout.sync = true end CapistranoMulticonfigParallel.configuration_valid? CapistranoMulticonfigParallel.verify_app_dependencies(stages) if CapistranoMulticonfigParallel.configuration.track_dependencies CapistranoMulticonfigParallel::Application.new.run rescue Interrupt `stty icanon echo` $stderr.puts 'Command cancelled.' rescue => error $stderr.puts error exit(1) end |