OK well first of all the entire thing is a sequence of C-Maj triads going up and down in octaves. For the first half of this lick ascending up to 15th fret on top-E string - I think the obvious way is to start with the 2nd finger (C) + index (Maj3rd) + little finger (5th). And then do the same for next two octaves up to G at 15th fret.
From there, pull-off with the little finger from G to Maj-3rd, play root with 2nd finger (ie 13th fret B-string), slide down with the 2nd finger to 8th fret, then play the next C-maj triad all with the index finger, then slide index finger down to 2nd fret D string (note E), and play C and G with index finger (then open string, then finally C at 8th fret).