Class: EasyCaddy::CLI
- Inherits:
-
Thor
- Object
- Thor
- EasyCaddy::CLI
- Defined in:
- lib/easy_caddy/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #audit ⇒ Object
- #caddy_run ⇒ Object
- #doctor ⇒ Object
- #down(name) ⇒ Object
- #edit(name) ⇒ Object
- #ensure ⇒ Object
- #list ⇒ Object
- #logs ⇒ Object
- #reload ⇒ Object
- #remove(name) ⇒ Object
- #retrust ⇒ Object
- #setup ⇒ Object
- #status ⇒ Object
- #up(name) ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
22 |
# File 'lib/easy_caddy/cli.rb', line 22 def self.exit_on_failure? = true |
Instance Method Details
#audit ⇒ Object
99 100 101 |
# File 'lib/easy_caddy/cli.rb', line 99 def audit Commands::Audit.new(site: [:site], fix: [:fix]).call end |
#caddy_run ⇒ Object
83 84 85 |
# File 'lib/easy_caddy/cli.rb', line 83 def caddy_run Commands::Run.new(config_path: [:config], site: [:site]).call end |
#doctor ⇒ Object
64 65 66 |
# File 'lib/easy_caddy/cli.rb', line 64 def doctor Commands::Doctor.new.call end |
#down(name) ⇒ Object
54 55 56 |
# File 'lib/easy_caddy/cli.rb', line 54 def down(name) Commands::Down.new(name: name).call end |
#edit(name) ⇒ Object
38 39 40 |
# File 'lib/easy_caddy/cli.rb', line 38 def edit(name) Commands::Edit.new(name: name).call end |
#ensure ⇒ Object
76 77 78 |
# File 'lib/easy_caddy/cli.rb', line 76 def ensure Commands::Ensure.new(config_path: [:config], site: [:site]).call end |
#list ⇒ Object
44 45 46 |
# File 'lib/easy_caddy/cli.rb', line 44 def list Commands::List.new(format: [:format]).call end |
#logs ⇒ Object
92 93 94 |
# File 'lib/easy_caddy/cli.rb', line 92 def logs Commands::Logs.new(site: [:site], lines: [:lines], follow: [:follow]).call end |
#reload ⇒ Object
69 70 71 |
# File 'lib/easy_caddy/cli.rb', line 69 def reload Commands::Reload.new.call end |
#remove(name) ⇒ Object
32 33 34 35 |
# File 'lib/easy_caddy/cli.rb', line 32 def remove(name) require 'tty-prompt' Commands::Remove.new(name: name, force: [:force], prompt: TTY::Prompt.new).call end |
#retrust ⇒ Object
104 105 106 |
# File 'lib/easy_caddy/cli.rb', line 104 def retrust Commands::Retrust.new.call end |
#setup ⇒ Object
25 26 27 28 |
# File 'lib/easy_caddy/cli.rb', line 25 def setup require 'tty-prompt' Commands::Setup.new(prompt: TTY::Prompt.new).call end |
#status ⇒ Object
59 60 61 |
# File 'lib/easy_caddy/cli.rb', line 59 def status Commands::Status.new.call end |