lib/produce/service.rb in produce-0.6.2 vs lib/produce/service.rb in produce-0.6.3

- old
+ new

@@ -6,11 +6,11 @@ def self.disable(options, args) self.new.disable(options, args) end - def enable(options, args) + def enable(options, _args) unless app Helper.log.info "[DevCenter] App '#{Produce.config[:app_identifier]}' does not exist".red return end @@ -18,11 +18,11 @@ Helper.log.info "Enabling services" enabled = update(true, app, options) Helper.log.info "Done! Enabled #{enabled} services.".green end - def disable(options, args) + def disable(options, _args) unless app Helper.log.info "[DevCenter] App '#{Produce.config[:app_identifier]}' does not exist".red return end @@ -32,11 +32,11 @@ Helper.log.info "Done! Disabled #{disabled} services.".green end def valid_services_for(options) allowed_keys = [:app_group, :associated_domains, :data_protection, :healthkit, :homekit, - :wireless_conf, :icloud, :inter_app_audio, :passbook, :push_notification, :vpn_conf] - options.__hash__.select { |key, value| allowed_keys.include? key } + :wireless_conf, :icloud, :inter_app_audio, :passbook, :push_notification, :vpn_conf] + options.__hash__.select { |key, value| allowed_keys.include? key } end def update(on, app, options) updated = valid_services_for(options).count