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
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/capistrano_multiconfig_parallel/cli.rb', line 6 def self.start if $stdin.isatty $stdin.sync = true end if $stdout.isatty $stdout.sync = true end CapistranoMulticonfigParallel.enable_logging CapistranoMulticonfigParallel::Application.new.run rescue Interrupt `stty icanon echo` $stderr.puts 'Command cancelled.' rescue => error $stderr.puts error exit(1) end |