<NME> Fastfile
<BEF> platform :ios do
  # before_all do
  #   # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
  #   # cocoapods
  #   # carthage
  #   create_keychain(
  #     name: 'name', # ENV["MATCH_KEYCHAIN_NAME"],
  #     password: 'password', # ENV["MATCH_KEYCHAIN_PASSWORD"],
  #     timeout: 1200
  #   )
  # end

  desc "Build App for development"
  lane :build do |options|
    project_path = "./platforms/ios/Rocket.Chat.xcodeproj"
    workspace_path = "./platforms/ios/Rocket.Chat.xcworkspace"
    match(
      type: "appstore",
      git_url: "git@github.com:RocketChat/Rocket.Chat.Cordova.FastLane.git",
    )
    sigh()
    upgrade_super_old_xcode_project(
      path: project_path,
    )
    disable_automatic_code_signing(path: project_path)
    update_project_provisioning(
      xcodeproj: project_path,
      build_configuration: "Release"
    )
    gym(
      workspace: workspace_path,
      scheme: "Rocket.Chat",
      output_directory: "./platforms/ios/"
    )
  end

  # desc "Submit a new Beta Build to Apple TestFlight"
  # desc "This will also make sure the profile is up to date"
  # lane :beta do
  #   match(
  #     type: "appstore",
  #     git_url: "git@github.com:RocketChat/Rocket.Chat.Cordova.FastLane.git",
  #   )
  #   pem()
  #   sigh()
  #   upgrade_super_old_xcode_project(
  #     path: "./platforms/ios/Rocket.Chat.xcodeproj",
  #   )
  #   disable_automatic_code_signing(path: "./platforms/ios/Rocket.Chat.xcodeproj")
  #   update_project_provisioning(
  #     xcodeproj: "./platforms/ios/Rocket.Chat.xcodeproj",
  #     build_configuration: "Release"
  #   )
  #   gym(
  #     workspace: "./platforms/ios/Rocket.Chat.xcworkspace",
  #     scheme: "Rocket.Chat"
  #   )
  #   pilot()
  # end

  # desc "Build App for release"
  # lane :release do
  #   match(
    ) # Build your app - more options available
  end

  # after_all do |lane|
  #   # This block is called, only if the executed lane was successful

  #   # slack(
  #   #   message: "Successfully deployed new App Update."
  #   # )
  #   delete_keychain(name: 'name') #ENV["MATCH_KEYCHAIN_NAME"])
  # end

  # error do |lane, exception|
  #   # slack(
  #   #   message: exception.message,
  #   #   success: false
  #   # )
  #   delete_keychain(name: 'name') #ENV["MATCH_KEYCHAIN_NAME"])
  # end

end

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
    delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
    delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
  end

end
<MSG> keychain

<DFF> @@ -1,14 +1,14 @@
 platform :ios do
-  # before_all do
-  #   # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
-  #   # cocoapods
-  #   # carthage
-  #   create_keychain(
-  #     name: 'name', # ENV["MATCH_KEYCHAIN_NAME"],
-  #     password: 'password', # ENV["MATCH_KEYCHAIN_PASSWORD"],
-  #     timeout: 1200
-  #   )
-  # end
+  before_all do
+    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
+    # cocoapods
+    # carthage
+    create_keychain(
+      name: ENV["MATCH_KEYCHAIN_NAME"],
+      password: ENV["MATCH_KEYCHAIN_PASSWORD"],
+      timeout: 1200
+    )
+  end
 
   desc "Build App for development"
   lane :build do |options|
@@ -64,21 +64,21 @@ platform :ios do
     ) # Build your app - more options available
   end
 
-  # after_all do |lane|
-  #   # This block is called, only if the executed lane was successful
+  after_all do |lane|
+    # This block is called, only if the executed lane was successful
 
-  #   # slack(
-  #   #   message: "Successfully deployed new App Update."
-  #   # )
-  #   delete_keychain(name: 'name') #ENV["MATCH_KEYCHAIN_NAME"])
-  # end
+    # slack(
+    #   message: "Successfully deployed new App Update."
+    # )
+    delete_keychain(name: 'name') #ENV["MATCH_KEYCHAIN_NAME"])
+  end
 
-  # error do |lane, exception|
-  #   # slack(
-  #   #   message: exception.message,
-  #   #   success: false
-  #   # )
-  #   delete_keychain(name: 'name') #ENV["MATCH_KEYCHAIN_NAME"])
-  # end
+  error do |lane, exception|
+    # slack(
+    #   message: exception.message,
+    #   success: false
+    # )
+    delete_keychain(name: 'name') #ENV["MATCH_KEYCHAIN_NAME"])
+  end
 
 end
\ No newline at end of file

{'commit': 'diff --git a/fastlane/Fastfile b/fastlane/Fastfile\nindex 620aac6..d60de2a 100644\n--- a/fastlane/Fastfile\n+++ b/fastlane/Fastfile\n@@ -1,14 +1,14 @@\n platform :ios do\n-  # before_all do\n-  #   # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."\n-  #   # cocoapods\n-  #   # carthage\n-  #   create_keychain(\n-  #     name: \'name\', # ENV["MATCH_KEYCHAIN_NAME"],\n-  #     password: \'password\', # ENV["MATCH_KEYCHAIN_PASSWORD"],\n-  #     timeout: 1200\n-  #   )\n-  # end\n+  before_all do\n+    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."\n+    # cocoapods\n+    # carthage\n+    create_keychain(\n+      name: ENV["MATCH_KEYCHAIN_NAME"],\n+      password: ENV["MATCH_KEYCHAIN_PASSWORD"],\n+      timeout: 1200\n+    )\n+  end\n \n   desc "Build App for development"\n   lane :build do |options|\n@@ -64,21 +64,21 @@ platform :ios do\n     ) # Build your app - more options available\n   end\n \n-  # after_all do |lane|\n-  #   # This block is called, only if the executed lane was successful\n+  after_all do |lane|\n+    # This block is called, only if the executed lane was successful\n \n-  #   # slack(\n-  #   #   message: "Successfully deployed new App Update."\n-  #   # )\n-  #   delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n-  # end\n+    # slack(\n+    #   message: "Successfully deployed new App Update."\n+    # )\n+    delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n+  end\n \n-  # error do |lane, exception|\n-  #   # slack(\n-  #   #   message: exception.message,\n-  #   #   success: false\n-  #   # )\n-  #   delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n-  # end\n+  error do |lane, exception|\n+    # slack(\n+    #   message: exception.message,\n+    #   success: false\n+    # )\n+    delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n+  end\n \n end\n\\ No newline at end of file\n', 'commit_subject': 'keychain', 'repo_name': 'RocketChat/Rocket.Chat.Cordova', 'committer': {'name': 'Diego Mello', 'email': 'e1b40f9c908a7ffce482254d001f9ca7608df789@gmail.com', 'time_sec': '1520512282', 'tz_offset': '-180', 'date': {'seconds': '1520512282'}}, 'commit_tree': 'db97d35d68236b6b901fd9e45acdb11aef41a96c', 'commit_message': 'keychain\n', 'language_name': 'HTML', 'license': 'mit', 'hunks': '@@ -1,14 +1,14 @@\n platform :ios do\n-  # before_all do\n-  #   # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."\n-  #   # cocoapods\n-  #   # carthage\n-  #   create_keychain(\n-  #     name: \'name\', # ENV["MATCH_KEYCHAIN_NAME"],\n-  #     password: \'password\', # ENV["MATCH_KEYCHAIN_PASSWORD"],\n-  #     timeout: 1200\n-  #   )\n-  # end\n+  before_all do\n+    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."\n+    # cocoapods\n+    # carthage\n+    create_keychain(\n+      name: ENV["MATCH_KEYCHAIN_NAME"],\n+      password: ENV["MATCH_KEYCHAIN_PASSWORD"],\n+      timeout: 1200\n+    )\n+  end\n \n   desc "Build App for development"\n   lane :build do |options|\n@@ -64,21 +64,21 @@ platform :ios do\n     ) # Build your app - more options available\n   end\n \n-  # after_all do |lane|\n-  #   # This block is called, only if the executed lane was successful\n+  after_all do |lane|\n+    # This block is called, only if the executed lane was successful\n \n-  #   # slack(\n-  #   #   message: "Successfully deployed new App Update."\n-  #   # )\n-  #   delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n-  # end\n+    # slack(\n+    #   message: "Successfully deployed new App Update."\n+    # )\n+    delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n+  end\n \n-  # error do |lane, exception|\n-  #   # slack(\n-  #   #   message: exception.message,\n-  #   #   success: false\n-  #   # )\n-  #   delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n-  # end\n+  error do |lane, exception|\n+    # slack(\n+    #   message: exception.message,\n+    #   success: false\n+    # )\n+    delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n+  end\n \n end\n\\ No newline at end of file\n', 'addition_count': 24, 'deletion_count': 24, 'src_file': 'a/fastlane/Fastfile', 'tgt_file': 'b/fastlane/Fastfile', 'file_extension': '', 'before_file': 'platform :ios do\n  # before_all do\n  #   # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."\n  #   # cocoapods\n  #   # carthage\n  #   create_keychain(\n  #     name: \'name\', # ENV["MATCH_KEYCHAIN_NAME"],\n  #     password: \'password\', # ENV["MATCH_KEYCHAIN_PASSWORD"],\n  #     timeout: 1200\n  #   )\n  # end\n\n  desc "Build App for development"\n  lane :build do |options|\n    project_path = "./platforms/ios/Rocket.Chat.xcodeproj"\n    workspace_path = "./platforms/ios/Rocket.Chat.xcworkspace"\n    match(\n      type: "appstore",\n      git_url: "git@github.com:RocketChat/Rocket.Chat.Cordova.FastLane.git",\n    )\n    sigh()\n    upgrade_super_old_xcode_project(\n      path: project_path,\n    )\n    disable_automatic_code_signing(path: project_path)\n    update_project_provisioning(\n      xcodeproj: project_path,\n      build_configuration: "Release"\n    )\n    gym(\n      workspace: workspace_path,\n      scheme: "Rocket.Chat",\n      output_directory: "./platforms/ios/"\n    )\n  end\n\n  # desc "Submit a new Beta Build to Apple TestFlight"\n  # desc "This will also make sure the profile is up to date"\n  # lane :beta do\n  #   match(\n  #     type: "appstore",\n  #     git_url: "git@github.com:RocketChat/Rocket.Chat.Cordova.FastLane.git",\n  #   )\n  #   pem()\n  #   sigh()\n  #   upgrade_super_old_xcode_project(\n  #     path: "./platforms/ios/Rocket.Chat.xcodeproj",\n  #   )\n  #   disable_automatic_code_signing(path: "./platforms/ios/Rocket.Chat.xcodeproj")\n  #   update_project_provisioning(\n  #     xcodeproj: "./platforms/ios/Rocket.Chat.xcodeproj",\n  #     build_configuration: "Release"\n  #   )\n  #   gym(\n  #     workspace: "./platforms/ios/Rocket.Chat.xcworkspace",\n  #     scheme: "Rocket.Chat"\n  #   )\n  #   pilot()\n  # end\n\n  # desc "Build App for release"\n  # lane :release do\n  #   match(\n    ) # Build your app - more options available\n  end\n\n  # after_all do |lane|\n  #   # This block is called, only if the executed lane was successful\n\n  #   # slack(\n  #   #   message: "Successfully deployed new App Update."\n  #   # )\n  #   delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n  # end\n\n  # error do |lane, exception|\n  #   # slack(\n  #   #   message: exception.message,\n  #   #   success: false\n  #   # )\n  #   delete_keychain(name: \'name\') #ENV["MATCH_KEYCHAIN_NAME"])\n  # end\n\nend\n\n    # slack(\n    #   message: "Successfully deployed new App Update."\n    # )\n    delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])\n  end\n\n  error do |lane, exception|\n    # slack(\n    #   message: exception.message,\n    #   success: false\n    # )\n    delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])\n  end\n\nend', 'message': 'keychain\n', 'author_name': 'Diego Mello', 'lang': 'Fastfile'}