Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bin/dory
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,14 @@ class DoryBin < Thor
def exec_status(_options)
puts "Reading settings file at '#{Dory::Config.filename}'".green if options[:verbose]
settings = Dory::Config.settings
exit_code = 0

if Dory::Proxy.running?
puts "[*] Nginx proxy: Running as docker container #{Dory::Proxy.container_name}".green
elsif !nginx_proxy_enabled?(settings)
puts "[*] Nginx proxy is disabled in config file".yellow
else
exit_code = 3
puts "[*] Nginx proxy is not running".red
end

Expand All @@ -377,6 +379,7 @@ class DoryBin < Thor
elsif !dnsmasq_enabled?(settings)
puts "[*] Dnsmasq is disabled in config file".yellow
else
exit_code = 3
puts "[*] Dnsmasq is not running".red
end

Expand All @@ -385,8 +388,11 @@ class DoryBin < Thor
elsif !resolv_enabled?(settings)
puts "[*] Resolv is disabled in config file".yellow
else
exit_code = 3
puts "[*] Resolv is not configured".red
end

exit exit_code
end

def exec_down(options, services)
Expand Down Expand Up @@ -518,6 +524,7 @@ end

aliases = {
'start' => 'up',
'ps' => 'status',
'stop' => 'down',
'update' => 'upgrade'
}
Expand Down