acquia/moonshot

View on GitHub
lib/moonshot/commands/doctor.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Moonshot
  module Commands
    class Doctor < Moonshot::Command
      self.usage = 'doctor [options]'
      self.description = 'Run configuration checks against the local environment'

      def execute
        controller.doctor || raise('One or more checks failed.')
      end
    end
  end
end