Class: Dip::CLI::Nginx
Overview
See more github.com/nginx-proxy/nginx-proxy
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#down ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'lib/dip/cli/nginx.rb', line 48 def down if [:help] invoke :help, ["down"] else Dip::Commands::Nginx::Down.new( name: .fetch(:name) ).execute end end |
#restart(*args) ⇒ Object
61 62 63 64 65 66 67 68 69 |
# File 'lib/dip/cli/nginx.rb', line 61 def restart(*args) if [:help] invoke :help, ["restart"] else Dip::CLI::Nginx.start(["down"] + args) sleep 1 Dip::CLI::Nginx.start(["up"] + args) end end |
#up ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/dip/cli/nginx.rb', line 27 def up if [:help] invoke :help, ["up"] else Dip::Commands::Nginx::Up.new( name: .fetch(:name), socket: .fetch(:socket), net: .fetch(:net), publish: .fetch(:publish), image: .fetch(:image), domain: .fetch(:domain), certs: [:certs] ).execute end end |