lifecycle_command (God::CLI::Command)

    # File lib/god/cli/command.rb, line 170
          def lifecycle_command
            # get the name of the watch/group
            name = @args[1]

            puts "Sending '#{@command}' command"

            t = Thread.new { loop { sleep(1); STDOUT.print('.'); STDOUT.flush; sleep(1) } }

            # send @command
            watches = @server.control(name, @command)

            # output response
            t.kill; STDOUT.puts
            unless watches.empty?
              puts 'The following watches were affected:'
              watches.each do |w|
                puts '  ' + w
              end
            else
              puts 'No matching task or group'
            end
          end