class Nginxtra::Actions::Print
Public Instance Methods
file()
click to toggle source
# File lib/nginxtra/actions/print.rb, line 18 def file @thor.options["file"] end
print()
click to toggle source
# File lib/nginxtra/actions/print.rb, line 6 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