Class: Bootprint::Doctor

Inherits:
Object
  • Object
show all
Defined in:
lib/bootprint/doctor.rb

Instance Method Summary collapse

Constructor Details

#initialize(policy: Policy.new) ⇒ Doctor

Returns a new instance of Doctor.



5
6
7
# File 'lib/bootprint/doctor.rb', line 5

def initialize(policy: Policy.new)
  @policy = policy
end

Instance Method Details

#run(snapshot = Snapshot.capture(label: "current")) ⇒ Object



9
10
11
# File 'lib/bootprint/doctor.rb', line 9

def run(snapshot = Snapshot.capture(label: "current"))
  Diagnosis.new(snapshot, snapshot, policy: @policy).run
end