lib/linux_admin.rb in linux_admin-0.20.0 vs lib/linux_admin.rb in linux_admin-0.20.1
- old
+ new
@@ -31,13 +31,21 @@
require 'linux_admin/time_date'
require 'linux_admin/ip_address'
require 'linux_admin/dns'
require 'linux_admin/network_interface'
require 'linux_admin/chrony'
+require 'forwardable'
module LinuxAdmin
class << self
+ extend Forwardable
+ extend Gem::Deprecate
attr_writer :logger
+
+ def_delegators Common, :run
+ def_delegators Common, :run!
+ deprecate :run, "AwesomeSpawn.run", 2017, 6
+ deprecate :run!, "AwesomeSpawn.run!", 2017, 6
end
def self.logger
@logger ||= NullLogger.new
end