Class: Saml::Kit::Cli::Commands::Metadata
- Inherits:
-
Thor
- Object
- Thor
- Saml::Kit::Cli::Commands::Metadata
- Defined in:
- lib/saml/kit/cli/commands/metadata.rb
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/saml/kit/cli/commands/metadata.rb', line 14 def list if registry.count.zero? say('Register metadata using `saml-kit metadata register <url>`') end registry.each do |x| say x.entity_id, :green end end |
#register(url) ⇒ Object
9 10 11 |
# File 'lib/saml/kit/cli/commands/metadata.rb', line 9 def register(url) say registry.register_url(url).to_xml(pretty: true), :green end |