Class: Certman::CLI
- Inherits:
-
Thor
- Object
- Thor
- Certman::CLI
- Defined in:
- lib/certman/cli.rb
Instance Method Summary collapse
Instance Method Details
#delete(domain) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/certman/cli.rb', line 38 def delete(domain) Certman::Client.new(domain, ).delete puts 'Done.' puts '' end |
#request(domain) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/certman/cli.rb', line 8 def request(domain) prompt = TTY::Prompt.new pastel = Pastel.new client = Certman::Client.new(domain, ) prompt_or_notify(client, prompt, pastel) rollback_on_interrupt(client, pastel) cert_arn = client.request puts 'Done.' puts '' puts "certificate_arn: #{pastel.cyan(cert_arn)}" puts '' end |
#restore_resources(domain) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/certman/cli.rb', line 25 def restore_resources(domain) prompt = TTY::Prompt.new pastel = Pastel.new client = Certman::Client.new(domain, ) prompt_or_notify(client, prompt, pastel) rollback_on_interrupt(client, pastel) client.restore_resources puts 'Done.' puts '' end |