Class: HockeyAppConfig
- Inherits:
-
Object
- Object
- HockeyAppConfig
- Defined in:
- lib/motion/project/hockeyapp.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#beta_id ⇒ Object
Returns the value of attribute beta_id.
-
#live_id ⇒ Object
Returns the value of attribute live_id.
-
#notes_type ⇒ Object
Returns the value of attribute notes_type.
-
#notify ⇒ Object
Returns the value of attribute notify.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #configure! ⇒ Object
-
#initialize(config) ⇒ HockeyAppConfig
constructor
A new instance of HockeyAppConfig.
- #inspect ⇒ Object
- #set(var, val) ⇒ Object
Constructor Details
#initialize(config) ⇒ HockeyAppConfig
Returns a new instance of HockeyAppConfig.
39 40 41 |
# File 'lib/motion/project/hockeyapp.rb', line 39 def initialize(config) @config = config end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def api_token @api_token end |
#beta_id ⇒ Object
Returns the value of attribute beta_id.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def beta_id @beta_id end |
#live_id ⇒ Object
Returns the value of attribute live_id.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def live_id @live_id end |
#notes_type ⇒ Object
Returns the value of attribute notes_type.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def notes_type @notes_type end |
#notify ⇒ Object
Returns the value of attribute notify.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def notify @notify end |
#status ⇒ Object
Returns the value of attribute status.
31 32 33 |
# File 'lib/motion/project/hockeyapp.rb', line 31 def status @status end |
Instance Method Details
#configure! ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'lib/motion/project/hockeyapp.rb', line 47 def configure! @configured ||= begin @config.vendor_project('vendor/HockeySDK/HockeySDK.framework', :static, products: ['HockeySDK'], headers_dir: 'Headers') @config.resources_dirs += [ './vendor/HockeySDK/Resources' ] @config.frameworks += [ 'HockeySDK' ] true end end |
#inspect ⇒ Object
43 44 45 |
# File 'lib/motion/project/hockeyapp.rb', line 43 def inspect {:api_token => api_token, :beta_id => beta_id, :live_id => live_id, :status => status, :notify => notify, :notes_type => notes_type, :always_show_update_reminder => always_show_update_reminder}.inspect end |
#set(var, val) ⇒ Object
33 34 35 36 37 |
# File 'lib/motion/project/hockeyapp.rb', line 33 def set(var, val) @config.info_plist['HockeySDK'] ||= [{}] @config.info_plist['HockeySDK'].first[var.to_s] = val send("#{var}=", val) end |