Class: DeployGateConfig
- Inherits:
-
Object
- Object
- DeployGateConfig
- Defined in:
- lib/motion-deploygate.rb
Instance Attribute Summary collapse
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
- #api_key=(key) ⇒ Object
-
#initialize(config) ⇒ DeployGateConfig
constructor
A new instance of DeployGateConfig.
- #sdk=(sdk) ⇒ Object
- #url_scheme=(scheme) ⇒ Object
- #user_infomation=(bool) ⇒ Object
Constructor Details
#initialize(config) ⇒ DeployGateConfig
Returns a new instance of DeployGateConfig.
10 11 12 13 |
# File 'lib/motion-deploygate.rb', line 10 def initialize(config) @config = config @user_infomation = false end |
Instance Attribute Details
#user_id ⇒ Object
Returns the value of attribute user_id.
8 9 10 |
# File 'lib/motion-deploygate.rb', line 8 def user_id @user_id end |
Instance Method Details
#api_key=(key) ⇒ Object
19 20 21 |
# File 'lib/motion-deploygate.rb', line 19 def api_key=(key) @api_key = key end |
#sdk=(sdk) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/motion-deploygate.rb', line 36 def sdk=(sdk) @sdk = sdk @config.vendor_project( sdk, :static, :products => ['DeployGateSDK'], :headers_dir => 'Headers' ) @config.frameworks << 'SystemConfiguration' create_launcher apply_patch end |
#url_scheme=(scheme) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/motion-deploygate.rb', line 27 def url_scheme=(scheme) @config.info_plist['CFBundleURLTypes'] = [ { 'CFBundleURLName' => @config.identifier, 'CFBundleURLSchemes' => [scheme] } ] end |
#user_infomation=(bool) ⇒ Object
23 24 25 |
# File 'lib/motion-deploygate.rb', line 23 def user_infomation=(bool) @user_infomation = bool end |