class Slowlane::Portal::App
Public Instance Methods
create(bundle_id,name)
click to toggle source
# File lib/slowlane/portal/app.rb, line 40 def create(bundle_id,name) c=Utils.credentials(options) Spaceship::Portal.login(c.username,c.password) t=Utils.team(options) Spaceship::Portal.client.team_id=t Spaceship::Portal.app.create!(bundle_id: bundle_id,name: name) end
delete(bundle_id)
click to toggle source
# File lib/slowlane/portal/app.rb, line 53 def delete(bundle_id) c=Utils.credentials(options) Spaceship::Portal.login(c.username,c.password) t=Utils.team(options) Spaceship::Portal.client.team_id=t app = Spaceship::Portal.app.find(bundle_id) app.delete! end
list()
click to toggle source
# File lib/slowlane/portal/app.rb, line 11 def list() c=Utils.credentials(options) Spaceship::Portal.login(c.username,c.password) t=Utils.team(options) Spaceship::Portal.client.team_id=t headings = ['appId', 'platform', 'prefix', 'wildcard', 'bundle_id', 'name'] rows = [] Spaceship::Portal.app.all.find_all do |app| row=[] row << app.app_id row << app.platform row << app.prefix row << app.is_wildcard row << app.bundle_id row << app.name rows << row end table = Terminal::Table.new :headings => headings, :rows => rows puts table end