Class: PF::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/pf/cli.rb

Instance Method Summary collapse

Instance Method Details

#servicesObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/pf/cli.rb', line 16

def services
  services = [
      {
          :name => "box",
          :home => "https://box.com/home",
          :desc => "A cloud content management and file sharing service, based in Redwood City, California"
      },
      {
          :name => "qiniu",
          :home => "https://qiniu.com",
          :desc => "A cloud-based storage solutions provider, based in Shanghai"
      }
  ]
  puts "pf supports following cloud storage services currently: "
  table = TTY::Table.new  services.map{|service|["", "- " + service[:name], service[:home], service[:desc]]}
  puts table.render(:basic, multiline: true, column_widths: [1, 10, 20, 40], padding: 1)
end