Class: DeployGateConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-deploygate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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