Sha256: b3e9b7d44d0732d47ffa23f7525e65927ab9198065c05160ddd462ac9001f9e6
Contents?: true
Size: 547 Bytes
Versions: 34
Compression:
Stored size: 547 Bytes
Contents
module Nginxtra module Actions # The Nginxtra::Actions::Status class encapsulates checking on the # status of nginx (whether or not it is running based on the pid # file). class Status include Nginxtra::Action def status @thor.say "The nginx server status: #{colored_message}" end def colored_message if Nginxtra::Config.nginx_running? @thor.set_color "running", :green, true else @thor.set_color "stopped", :red, true end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems