Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/linux_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@

module LinuxAdmin
extend Common
extend self

attr_writer :logger
class << self
attr_writer :logger
end

def logger
def self.logger
@logger ||= NullLogger.new
end
end
2 changes: 2 additions & 0 deletions lib/linux_admin/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module LinuxAdmin
module Common
include Logging

BIN_DIRS = %w(/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin)

def cmd(name)
Expand Down
2 changes: 0 additions & 2 deletions lib/linux_admin/rpm.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module LinuxAdmin
class Rpm < Package
extend Logging

def self.rpm_cmd
cmd(:rpm)
end
Expand Down