Sha256: 66294e5bfbb623810ad1f4293758189c59e286fa078f9b319b06476ea302cbea

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

Stored size: 611 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.5.0 lib/capistrano_multiconfig_parallel/cli.rb
capistrano_multiconfig_parallel-0.4.0 lib/capistrano_multiconfig_parallel/cli.rb