Sha256: 02e5dbb3599e074371ffd5d0966eabdb9af762ddc7ba6ec9daa4b0e4afefb75c
Contents?: true
Size: 522 Bytes
Versions: 12
Compression:
Stored size: 522 Bytes
Contents
desc 'Execute remote commands' task :console do stage = fetch(:stage) puts I18n.t('console.welcome', scope: :capistrano, stage: stage) loop do print "#{stage}> " if input = $stdin.gets command = input.chomp else command = 'exit' end next if command.empty? if %w{quit exit q}.include? command puts t('console.bye') break else begin on roles :all do execute command end rescue => e puts e end end end end
Version data entries
12 entries across 10 versions & 3 rubygems