Just to be clear...
Lua Code:
local _, class = UnitClass("player")
if class ~= "ROGUE" then
DisableAddon("YourAddonName") --you don't need to specify a character here, unless you want to disable for a different character than the one you're on ;)
return
end