Sha256: f6eab91f71af52b72c7706513021706130a6ffdf95a03fa24f2d4a6fdc63a46b

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 Bytes

Contents

require_relative './all'
module CapistranoMulticonfigParallel
  # this is the class that will be invoked from terminal , and willl use the invoke task as the primary function.
  class CLI
    def self.start
      if $stdin.isatty
        $stdin.sync = true
      end
      if $stdout.isatty
        $stdout.sync = true
      end
      CapistranoMulticonfigParallel.original_args = ARGV.dup
      CapistranoMulticonfigParallel::Application.new.run
    rescue Interrupt
      `stty icanon echo`
      $stderr.puts 'Command cancelled.'
    rescue => error
      $stderr.puts error
      exit(1)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capistrano_multiconfig_parallel-0.6.2 lib/capistrano_multiconfig_parallel/cli.rb
capistrano_multiconfig_parallel-0.6.1 lib/capistrano_multiconfig_parallel/cli.rb