Class: DeployGate::Xcode::MemberCenter
- Inherits:
-
Object
- Object
- DeployGate::Xcode::MemberCenter
- Includes:
- Singleton
- Defined in:
- lib/deploygate/xcode/member_center.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#launcher ⇒ Object
readonly
Returns the value of attribute launcher.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#team ⇒ Object
readonly
Returns the value of attribute team.
Instance Method Summary collapse
- #adhoc? ⇒ Boolean
- #in_house? ⇒ Boolean
-
#initialize ⇒ MemberCenter
constructor
A new instance of MemberCenter.
Constructor Details
#initialize ⇒ MemberCenter
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
#email ⇒ Object (readonly)
Returns the value of attribute email.
7 8 9 |
# File 'lib/deploygate/xcode/member_center.rb', line 7 def email @email end |
#launcher ⇒ Object (readonly)
Returns the value of attribute launcher.
7 8 9 |
# File 'lib/deploygate/xcode/member_center.rb', line 7 def launcher @launcher end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/deploygate/xcode/member_center.rb', line 7 def method @method end |
#team ⇒ Object (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
22 23 24 |
# File 'lib/deploygate/xcode/member_center.rb', line 22 def adhoc? @method == Export::AD_HOC end |
#in_house? ⇒ Boolean
27 28 29 |
# File 'lib/deploygate/xcode/member_center.rb', line 27 def in_house? @method == Export::ENTERPRISE end |