Sha256: b8deb503b97d117df042d0e06b281bd8fa109902945167b138fb5722bba45b49
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 Bytes
Contents
require_relative './util.rb' require_relative './client.rb' require 'terminal-table' module Slowlane module Fabric class App <Thor desc "apps", "get list of apps" def list c=Utils.credentials(options) fabric = Slowlane::Fabric::Client.new fabric.username = c.username fabric.password = c.password fabric.team = Utils.team(options) apps = fabric.list_apps() headings = ['id', 'name', 'bundle_id'] rows = [] apps.each do |app| row = [] row << app['id'] row << app['name'] row << app['bundle_identifier'] rows << row end table = Terminal::Table.new :headings => headings, :rows => rows puts table end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slowlane-1.1.1 | lib/slowlane/fabric/app.rb |
slowlane-1.1.0 | lib/slowlane/fabric/app.rb |