Class: DeployGate::Xcode::MemberCenter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMemberCenter

Returns a new instance of MemberCenter.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/deploygate/xcode/member_center.rb', line 9

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

  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.



7
8
9
# File 'lib/deploygate/xcode/member_center.rb', line 7

def email
  @email
end

#launcherObject (readonly)

Returns the value of attribute launcher.



7
8
9
# File 'lib/deploygate/xcode/member_center.rb', line 7

def launcher
  @launcher
end

#methodObject (readonly)

Returns the value of attribute method.



7
8
9
# File 'lib/deploygate/xcode/member_center.rb', line 7

def method
  @method
end

#teamObject (readonly)

Returns the value of attribute team.



7
8
9
# File 'lib/deploygate/xcode/member_center.rb', line 7

def team
  @team
end

Instance Method Details

#adhoc?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/deploygate/xcode/member_center.rb', line 22

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

#in_house?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/deploygate/xcode/member_center.rb', line 27

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