Permalink
Browse files

fixed indending

  • Loading branch information...
1 parent e74cad0 commit 1671169974fc63f9c28a164027366882d3cdf1c4 Missy committed May 1, 2013
Showing with 30 additions and 30 deletions.
  1. +30 −30 squirrel/squirrel.rb
View
@@ -164,36 +164,36 @@ def cardinality(options)
def task_caller
puts "Running #{@command}"
- case @command
- when :restore
- @options[:index] = @options[:restore_index]
- @options[:mappings] = @options[:restore_mapping]
- ESRestore.new(@options[:restore_file], @options).run
- when :backup
- @options[:index] = @options[:dump_index]
- @options[:mappings] = @options[:dump_mapping]
- ESBackup.new(@options[:output_dir], @options).run
- when :duplicate
- @options[:index] = @options[:duplicate_index]
- @options[:mappings] = @options[:duplicate_mapping]
- ESDup.new(@options[:duplicate_file], @options).run
- when :cardinality
- cardinality(@options)
- when :warmer
- determine_warmer_action(@options)
- when :replay
- Replay.new(@options[:execute_slow_queries], @options[:host], @options[:port]).run
- when :cache
- determine_cache_clear(@options)
- when :index_settings
- unless @options[:es_index_settings].nil? || @options[:es_index_settings_values].nil?
- @options[:settings_and_values] = @options[:es_index_settings].zip(@options[:es_index_settings_values])
- ChangeESIndexSettings.new(@options).run
- else
- puts "both --es_index_settings and --es_index_settings_values are required to change index settings"
- end
- else abort Settings.help("Must specify either backup, restore, duplicate, cardinality, warmer, replay, cache or index_settings. Got <#{@command}> UPDATE THIS LINE!")
- end
+ case @command
+ when :restore
+ @options[:index] = @options[:restore_index]
+ @options[:mappings] = @options[:restore_mapping]
+ ESRestore.new(@options[:restore_file], @options).run
+ when :backup
+ @options[:index] = @options[:dump_index]
+ @options[:mappings] = @options[:dump_mapping]
+ ESBackup.new(@options[:output_dir], @options).run
+ when :duplicate
+ @options[:index] = @options[:duplicate_index]
+ @options[:mappings] = @options[:duplicate_mapping]
+ ESDup.new(@options[:duplicate_file], @options).run
+ when :cardinality
+ cardinality(@options)
+ when :warmer
+ determine_warmer_action(@options)
+ when :replay
+ Replay.new(@options[:execute_slow_queries], @options[:host], @options[:port]).run
+ when :cache
+ determine_cache_clear(@options)
+ when :index_settings
+ unless @options[:es_index_settings].nil? || @options[:es_index_settings_values].nil?
+ @options[:settings_and_values] = @options[:es_index_settings].zip(@options[:es_index_settings_values])
+ ChangeESIndexSettings.new(@options).run
+ else
+ puts "both --es_index_settings and --es_index_settings_values are required to change index settings"
+ end
+ else abort Settings.help("Must specify either backup, restore, duplicate, cardinality, warmer, replay, cache or index_settings. Got <#{@command}> UPDATE THIS LINE!")
+ end
end
end

0 comments on commit 1671169

Please sign in to comment.