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
- #setup ⇒ Object
- #status ⇒ Object
- #up(name) ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
21 |
# File 'lib/easy_caddy/cli.rb', line 21 def self.exit_on_failure? = true |
Instance Method Details
#audit ⇒ Object
98 99 100 |
# File 'lib/easy_caddy/cli.rb', line 98 def audit Commands::Audit.new(site: [:site], fix: [:fix]).call end |
#caddy_run ⇒ Object
82 83 84 |
# File 'lib/easy_caddy/cli.rb', line 82 def caddy_run Commands::Run.new(config_path: [:config], site: [:site]).call end |
#doctor ⇒ Object
63 64 65 |
# File 'lib/easy_caddy/cli.rb', line 63 def doctor Commands::Doctor.new.call end |
#down(name) ⇒ Object
53 54 55 |
# File 'lib/easy_caddy/cli.rb', line 53 def down(name) Commands::Down.new(name: name).call end |
#edit(name) ⇒ Object
37 38 39 |
# File 'lib/easy_caddy/cli.rb', line 37 def edit(name) Commands::Edit.new(name: name).call end |
#ensure ⇒ Object
75 76 77 |
# File 'lib/easy_caddy/cli.rb', line 75 def ensure Commands::Ensure.new(config_path: [:config], site: [:site]).call end |
#list ⇒ Object
43 44 45 |
# File 'lib/easy_caddy/cli.rb', line 43 def list Commands::List.new(format: [:format]).call end |
#logs ⇒ Object
91 92 93 |
# File 'lib/easy_caddy/cli.rb', line 91 def logs Commands::Logs.new(site: [:site], lines: [:lines], follow: [:follow]).call end |
#reload ⇒ Object
68 69 70 |
# File 'lib/easy_caddy/cli.rb', line 68 def reload Commands::Reload.new.call end |
#remove(name) ⇒ Object
31 32 33 34 |
# File 'lib/easy_caddy/cli.rb', line 31 def remove(name) require 'tty-prompt' Commands::Remove.new(name: name, force: [:force], prompt: TTY::Prompt.new).call end |
#setup ⇒ Object
24 25 26 27 |
# File 'lib/easy_caddy/cli.rb', line 24 def setup require 'tty-prompt' Commands::Setup.new(prompt: TTY::Prompt.new).call end |
#status ⇒ Object
58 59 60 |
# File 'lib/easy_caddy/cli.rb', line 58 def status Commands::Status.new.call end |