lib/chef/application/windows_service_manager.rb
# Helper method that waits for a status to change its state since state
# changes aren't usually instantaneous.
Helper method that waits for a status to change its state since state
changes aren't usually instantaneous.
Helper method that waits for a status to change its state since state changes aren ' t usually instantaneous .
def wait_for_state(desired_state)
        while current_state != desired_state
          puts "One moment... #{current_state}"
          sleep 1
        end
      end
def wait_for_state ( desired_state ) while current_state != desired_state puts "One moment... #{current_state}" sleep 1 end end
Helper method that waits for a status to change its state since state
changes aren't usually instantaneous.
Helper method that waits for a status to change its state since state changes aren ' t usually instantaneous .
desired_state
<not_specific>