Sha256: 380cb2edc3fbaea8b12988ecaf94063c4c276dbef4ad7a04124d58fcf069c6a2
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
require 'thor' require 'certflare/version' require 'certflare/commands' require 'certflare/common/authenticator' require 'certflare/common/cleanup' module Certflare class CLI < Thor desc '--version, -v', 'returns version and exits' def __version puts Certflare::VERSION end map ['-v', '--version'] => :__version desc 'cert [subcommand] [options]', 'cert actions' subcommand('cert', Certflare::Commands::Cert) end class HookCLI < Thor desc '--version, -v', 'returns version and exits' def __version puts Certflare::VERSION end map ['-v', '--version'] => :__version desc 'auth [options]', 'Authenticate with cloudflare and create records for verfication' def auth auther = Certflare::Authenticator.new auther.create_txt_record auther.create_cleanup sleep 20 end desc 'clean [options]', 'Cleanup cloudflare records and files' def clean cleanup = Certflare::CleanUp.new cleanup.get_certbot_vars cleanup.get_domain cleanup.remove_zone_id cleanup.remove_record_id cleanup.remove_txt_record end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
certflare-0.1.10 | lib/certflare/cli.rb |
certflare-0.1.9 | lib/certflare/cli.rb |
certflare-0.1.8 | lib/certflare/cli.rb |