Sha256: ef4111075151bb42d46a33adb1029f35060bdae9ccb11b6c52918005dbc359c9
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require_relative 'rake_helpers' namespace :operator do task :ping do on roles(:all), in: :sequence do |host| info "target: #{host}" execute 'pwd' hostname = capture('hostname') if hostname puts 'ping: true' puts "hostname: #{hostname}" else puts 'ping: false' end while true set :command, ask('any command(何も入力せずEnterすると抜けます)') break if fetch(:command) == nil try_to_execute(fetch(:command)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-operator-1.0.0 | lib/capistrano/tasks/test.rake |