Skip to content

Instantly share code, notes, and snippets.

@rphillips
Created August 4, 2015 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rphillips/ec82bfe5e299ec14ca4b to your computer and use it in GitHub Desktop.
Save rphillips/ec82bfe5e299ec14ca4b to your computer and use it in GitHub Desktop.
local HostInfo = require('./base').HostInfo
local los = require('los')
local readCast = require('./misc').readCast
local async = require('async')
local fs = require('fs')
local path = require('path')
local sigar = require('sigar')
local logWarn = require('./misc').logWarn
local logging = require('logging')
--[[ Pluggable auth modules ]]--
local Info = HostInfo:extend()
function Info:initialize()
HostInfo.initialize(self)
end
function Info:run(callback)
logging.warningf('This is a warning %s', table.concat({}))
if los.type() ~= 'linux' then
self._error = 'Unsupported OS for pluggable auth module definitions'
return callback()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment