Class: DeployGate::Xcode::MemberCenter

Inherits:
Object
  • Object
show all
Defined in:
lib/deploygate/xcode/member_center.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(team_id) ⇒ MemberCenter

Returns a new instance of MemberCenter.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/deploygate/xcode/member_center.rb', line 6

def initialize(team_id)
  @email = input_email
  @launcher = Spaceship::Launcher.new @email
  @team = @launcher.select_team(team_id: team_id)

  if @launcher.client.in_house?
    @method = Export::ENTERPRISE
  else
    @method = Export::AD_HOC
  end
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



4
5
6
# File 'lib/deploygate/xcode/member_center.rb', line 4

def email
  @email
end

#launcherObject (readonly)

Returns the value of attribute launcher.



4
5
6
# File 'lib/deploygate/xcode/member_center.rb', line 4

def launcher
  @launcher
end

#methodObject (readonly)

Returns the value of attribute method.



4
5
6
# File 'lib/deploygate/xcode/member_center.rb', line 4

def method
  @method
end

#teamObject (readonly)

Returns the value of attribute team.



4
5
6
# File 'lib/deploygate/xcode/member_center.rb', line 4

def team
  @team
end

Instance Method Details

#adhoc?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/deploygate/xcode/member_center.rb', line 19

def adhoc?
  @method == Export::AD_HOC
end

#in_house?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/deploygate/xcode/member_center.rb', line 24

def in_house?
  @method == Export::ENTERPRISE
end