class Leeloo::Ascii

Public Instance Methods

render_footprint(footprint) click to toggle source
# File lib/leeloo/output.rb, line 53
def render_footprint footprint
    puts "token:"
    puts Base64.strict_encode64 footprint.to_json
end
render_preferences(preferences) click to toggle source
# File lib/leeloo/output.rb, line 33
def render_preferences preferences
    preferences.keystores.each { |keystore| puts keystore.name }
end
render_secret(secret) click to toggle source
# File lib/leeloo/output.rb, line 41
def render_secret secret
    begin
        puts secret.read
    rescue => exception
        puts "#{secret.name} doesn't exist"
    end
end
render_secrets(secrets) click to toggle source
# File lib/leeloo/output.rb, line 37
def render_secrets secrets
    secrets.sort_by(&:name).each {|secret| puts secret.name}
end
render_text(text) click to toggle source
# File lib/leeloo/output.rb, line 49
def render_text text
    puts text
end