Sha256: c9e7f6871a2791c9434e2334f3ae4af18a4abd5f874e6a4b809e3ea90f06a106
Contents?: true
Size: 596 Bytes
Versions: 22
Compression:
Stored size: 596 Bytes
Contents
module Nginxtra module Actions class Print include Nginxtra::Action def print if @thor.options["list"] @thor.say "Known config files:\n #{@config.files.sort.join "\n "}" elsif @thor.options["compile-options"] @thor.say "Compilation options:\n #{@config.compile_options}" elsif @config.files.include?(file) @thor.say @config.file_contents(file) else @thor.say "No config file by the name '#{file}' exists!" end end def file @thor.options["file"] end end end end
Version data entries
22 entries across 22 versions & 1 rubygems