Skip to content

Commit

Permalink
Update other.md for Match::Storage contract changes
Browse files Browse the repository at this point in the history
Match::Storage changed in
fastlane/fastlane#21018
  • Loading branch information
arc-v2 authored Nov 9, 2023
1 parent 9ae32d1 commit 453b4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/other.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ irb(main):005:0> branch = 'master'
Now create an instance of `Storage` and `Encryption`. The `download` method on `Storage` will clone the repo and the `decrypt_files` method on `Encryption` will decrypt the repo for you. Assign the return values to `storage` and `encrypt`, which we'll need later when we re-encrypt:

```ruby
irb(main):006:0> storage = Match::Storage.for_mode("git", { git_url: git_url, shallow_clone: shallow_clone, git_branch: branch, clone_branch_directly: false})
irb(main):006:0> storage = Match::Storage.from_params({storage_mode: "git", git_url: git_url, shallow_clone: shallow_clone, git_branch: branch, clone_branch_directly: false})
irb(main):007:0> storage.download
irb(main):008:0> encryption = Match::Encryption.for_storage_mode("git", { git_url: git_url, working_directory: storage.working_directory})
irb(main):009:0> encryption.decrypt_files
Expand Down

0 comments on commit 453b4ec

Please sign in to comment.