@ares, @domcleal, if this is a mixin then it should be in app/models/concerns.  I noticed there is no "include PowerManager".  I guess it's not needed, since the files in app/services were automatically loaded which was the previous issue with ssh.rb.  I suggest to move it to app/models/concerns and include it where used.