capistranorb.com - "A Simple Task" mistake?

20 views
Skip to first unread message

Randy Westergren Jr

unread,
Jul 16, 2014, 9:46:10 AM7/16/14
to capis...@googlegroups.com
Shouldn't the "Simple Task" on the http://capistranorb.com/ site be:

role :demo, %w{example.com example.org example.net}
task :uptime do
  on roles(:demo), in: :parallel do |host|
    uptime = capture(:uptime)
    puts "#{host.hostname} reports: #{uptime}"
  end
end

I think the "|host|" is on the wrong line.
Reply all
Reply to author
Forward
0 new messages