./lib/cupertino/provisioning_portal/commands.rb in cupertino-0.9.2 vs ./lib/cupertino/provisioning_portal/commands.rb in cupertino-0.9.3
- old
+ new
@@ -3,10 +3,10 @@
require 'cupertino/provisioning_portal/helpers'
include Cupertino::ProvisioningPortal::Helpers
global_option('-u', '--username USER', 'Username') { |arg| agent.username = arg unless arg.nil? }
global_option('-p', '--password PASSWORD', 'Password') { |arg| agent.password = arg unless arg.nil? }
-global_option('--team TEAM', 'Team') { |arg| agent.team = arg unless arg.nil? }
+global_option('--team TEAM', 'Team') { |arg| agent.team = arg if arg }
global_option('--info', 'Set log level to INFO') { agent.log.level = Logger::INFO }
global_option('--debug', 'Set log level to DEBUG') { agent.log.level = Logger::DEBUG }
require 'cupertino/provisioning_portal/commands/certificates'
require 'cupertino/provisioning_portal/commands/devices'