Method: App42::Command::App#urls
- Defined in:
- lib/app42/command/app.rb
#urls ⇒ Object
List all custom urls of apps
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/app42/command/app.rb', line 322 def urls [:name] = get_app_name if [:name].nil? rows, rows_header_final, rows_header = [], [], nil custom_url_info = custom_url_information [:name] if custom_url_info && custom_url_info['urls'] custom_url_info['urls'].each do |e| rows_header = e.keys rows << e.values end rows_header.map { |e| rows_header_final << camel_case_to_whitespace(e) } table = Terminal::Table.new :title => Paint["=== #{@options[:name]} Custom URLs Details ===", :green], :headings => rows_header_final, :rows => rows puts table end end |