Top Level Namespace

Defined Under Namespace

Modules: Fastlane

Instance Method Summary collapse

Instance Method Details

#resort_keys(input) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_release_action.rb', line 7

def resort_keys(input)
  resort = {}
  keys = []
  input.each_key do |key|
    puts("Key #{key} #{key.class}")
    keys.push(key.to_s)
  end

  keys = keys.sort
  puts("Sorted keys: #{keys}")
  keys.each do |k|
    resort[k] = input[k]
  end
  resort
end