bin/produce in produce-0.6.2 vs bin/produce in produce-0.6.3

- old
+ new

@@ -50,11 +50,11 @@ c.option '--push-notification', 'Enable Push notification (only enables the service, does not configure certificates)' c.option '--vpn-conf', 'Enable VPN Configuration' c.action do |args, options| # Filter the options so that we can still build the configuration - allowed_keys = Produce::Options.available_options.collect { |config| config.key } + allowed_keys = Produce::Options.available_options.collect(&:key) Produce.config = FastlaneCore::Configuration.create(Produce::Options.available_options, options.__hash__.select { |key, value| allowed_keys.include? key }) require 'produce/service' Produce::Service.enable(options, args) end @@ -77,11 +77,11 @@ c.option '--push-notification', 'Disable Push notifications' c.option '--vpn-conf', 'Disable VPN Configuration' c.action do |args, options| # Filter the options so that we can still build the configuration - allowed_keys = Produce::Options.available_options.collect { |config| config.key } + allowed_keys = Produce::Options.available_options.collect(&:key) Produce.config = FastlaneCore::Configuration.create(Produce::Options.available_options, options.__hash__.select { |key, value| allowed_keys.include? key }) require 'produce/service' Produce::Service.disable(options, args) end @@ -94,10 +94,10 @@ c.option '-n', '--group_name STRING', String, 'Name for the group that is created (PRODUCE_GROUP_NAME)' c.option '-g', '--group_identifier STRING', String, 'Group identifier for the group (PRODUCE_GROUP_IDENTIFIER)' c.action do |args, options| - allowed_keys = Produce::Options.available_options.collect { |config| config.key } + allowed_keys = Produce::Options.available_options.collect(&:key) Produce.config = FastlaneCore::Configuration.create(Produce::Options.available_options, options.__hash__.select { |key, value| allowed_keys.include? key }) require 'produce/group' Produce::Group.new.create(options, args) end