21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-11 13:08:39 +02:00
chexpire/app/services/whois/command.rb
2018-05-30 17:01:32 +02:00

19 lines
327 B
Ruby

require "null_logger"
require "system_command"
module Whois
class Command
attr_reader :logger
attr_reader :domain
def initialize(domain, logger: NullLogger.new)
@domain = domain
@logger = logger
end
def run
SystemCommand.new("whois", domain, logger: logger).execute
end
end
end