module Aptible::CLI::Renderer
Constants
- FORMAT_VAR
Public Class Methods
current()
click to toggle source
# File lib/aptible/cli/renderer.rb, line 12 def self.current case (format = ENV[FORMAT_VAR]) when 'json' Json.new when 'text' Text.new when nil Text.new else raise UserError, "Invalid #{FORMAT_VAR}: #{format}" end end