Sha256: 1ab50619b5a1ebf05d48eafe9a882e41f5a1a6ca48d0fa6d1de947df5478c5ea
Contents?: true
Size: 733 Bytes
Versions: 18
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true require_relative "base" module Neetob class CLI module Cloudflare class SSLMode < Base attr_accessor :domain def initialize(domain) super() @domain = domain end def run zone_id = ZONE_IDS[domain.to_sym] raise(StandardError, "Domain '#{domain}' not found.") if zone_id.nil? url = create_url(zone_id, "settings/ssl") response = get(url) ssl_mode = response[:result][:value] == "full" ? print_success(response[:result][:value]) : print_failure(response[:result][:value]) ui.info("SSL Mode is set to #{ssl_mode}") end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems