Skip to content

Commit

Permalink
Drop symbol suport for tools/configure_server_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Feb 2, 2021
1 parent a481e5b commit ecb54d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/configure_server_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
require 'bundler/setup'
require 'optimist'

TYPES = %w(string integer boolean symbol float array).freeze
TYPES = %w(string integer boolean float array).freeze

opts = Optimist.options(ARGV) do
banner "USAGE: #{__FILE__} -s <server id> -p <settings path separated by a /> -v <new value>\n" \
"Example (String): #{__FILE__} -s 1 -p reporting/history/keep_reports -v 3.months\n" \
"Example (Integer): #{__FILE__} -s 1 -p workers/worker_base/queue_worker_base/ems_metrics_collector_worker/defaults/count -v 1 -t integer\n" \
"Example (Boolean): #{__FILE__} -s 1 -p ui/mark_translated_strings -v true -t boolean\n" \
"Example (Symbol): #{__FILE__} -s 1 -p workers/worker_base/queue_worker_base/ems_metrics_collector_worker/defaults/poll_method -v escalate -t symbol\n" \
"Example (Float): #{__FILE__} -s 1 -p capacity/profile/1/vcpu_commitment_ratio -v 1.5 -t float" \

opt :dry_run, "Dry Run", :short => "d"
Expand Down Expand Up @@ -41,8 +40,6 @@
elsif opts[:value].downcase == "false"
false
end
when "symbol"
opts[:value].to_sym
when "float"
opts[:value].to_f
when "array"
Expand Down

0 comments on commit ecb54d3

Please sign in to comment.