Skip to content

Instantly share code, notes, and snippets.

@lcx
Created July 13, 2017 08:46
Show Gist options
  • Save lcx/b1636d1d9513737c925c8114d5a20649 to your computer and use it in GitHub Desktop.
Save lcx/b1636d1d9513737c925c8114d5a20649 to your computer and use it in GitHub Desktop.
def initialize(device_id)
@device_path = "-d megaraid,#{device_id} /dev/sda"
@smart_available = false
@smart_enabled = false
@smart_healty = nil
check_smart_capability!
check_health! if smart_capable?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment