enabled()) { return self::SUCCESS; } if (! $this->option('force') && ! $window->isOpen()) { return self::SUCCESS; } $state = $channel->state(); // The agent has to be alive, there has to be something to install, and // nothing may be running. All three come from the same state the button // is disabled by, so the automation cannot do what an operator is // prevented from doing by hand. if (! $state['agent_seen'] || ! $state['available'] || $state['running']) { return self::SUCCESS; } if ($channel->request(__('admin_settings.update_by_schedule'))) { $this->info('Requested an update inside the window.'); } return self::SUCCESS; } }