fastlane-plugin-dotenv_vault 0.10.0.beta.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20991f863c06c111f6d1c6a14cd2efb08c805a2919b8399bc736588ad3ec122b
|
4
|
+
data.tar.gz: 8738f90928a527d241fe0ddbc8090659878c21ab95bb93ccfe877584548ad6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f3ad5619f4a79eca3e8e136abb42e1a8c398f3a13658c3d90768bfc0d2ce2c6bc8ae3d001bd113b2f904c5052f2b22e3bacce422108022b6230e4f773da9938
|
7
|
+
data.tar.gz: 5fe0d7796adbeb5a5caaa946d003ec8f77e800b1367a324f9fffe648a962978f63b8ec48c0f96634d444264dcc93e6362691c3fafe563effdadb36c7c4f79865
|
data/README.md
CHANGED
@@ -10,28 +10,56 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
|
|
10
10
|
fastlane add_plugin dotenv_vault
|
11
11
|
```
|
12
12
|
|
13
|
+
then at the top of your `Fastfile`:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
# Fastfile
|
17
|
+
dotenv_vault
|
18
|
+
|
19
|
+
# or if you want to configure non-standard path to .env.vault file
|
20
|
+
dotenv_vault(
|
21
|
+
# vault_path: ".env.vault",
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
25
|
+
You can also set the `VAULT_PATH` environment variable to configure the path to the `.env.vault` file:
|
26
|
+
|
27
|
+
```bash
|
28
|
+
$ DOTENV_VAULT_PATH="../.env.vault" \
|
29
|
+
fastlane some_lane
|
30
|
+
```
|
31
|
+
|
13
32
|
## About dotenv_vault
|
14
33
|
|
15
34
|
Decrypt .env.vault file.
|
16
35
|
|
17
|
-
|
36
|
+
## Actions
|
37
|
+
|
38
|
+
### dotenv_vault
|
39
|
+
|
40
|
+
Decrypt .env.vault file.
|
41
|
+
|
42
|
+
#### Parameters
|
43
|
+
|
44
|
+
| Parameter | Environment Variable | Default |
|
45
|
+
| ------------- | -------------------- | ------------ |
|
46
|
+
| `:vault_path` | `DOTENV_VAULT_PATH` | `.env.vault` |
|
18
47
|
|
19
48
|
## Example
|
20
49
|
|
21
50
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
22
51
|
|
23
|
-
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
|
24
|
-
|
25
52
|
## Run tests for this plugin
|
26
53
|
|
27
54
|
To run both the tests, and code style validation, run
|
28
55
|
|
29
|
-
```
|
56
|
+
```bash
|
30
57
|
rake
|
31
58
|
```
|
32
59
|
|
33
60
|
To automatically fix many of the styling issues, use
|
34
|
-
|
61
|
+
|
62
|
+
```bash
|
35
63
|
rubocop -a
|
36
64
|
```
|
37
65
|
|
@@ -1,13 +1,16 @@
|
|
1
1
|
require 'fastlane/action'
|
2
|
+
require 'fastlane_core/configuration/config_item'
|
2
3
|
require 'dotenv-vault'
|
3
4
|
require_relative '../helper/dotenv_vault_helper'
|
4
5
|
|
5
6
|
module Fastlane
|
6
7
|
module Actions
|
7
8
|
class DotenvVaultAction < Action
|
8
|
-
def self.run(
|
9
|
+
def self.run(params)
|
10
|
+
params.values
|
11
|
+
|
9
12
|
if defined?(::DotenvVault)
|
10
|
-
::DotenvVault.load
|
13
|
+
::DotenvVault.load(params[:vault_path])
|
11
14
|
end
|
12
15
|
end
|
13
16
|
|
@@ -30,11 +33,11 @@ module Fastlane
|
|
30
33
|
|
31
34
|
def self.available_options
|
32
35
|
[
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
FastlaneCore::ConfigItem.new(key: :vault_path,
|
37
|
+
env_name: "DOTENV_VAULT_PATH",
|
38
|
+
description: "Path to .env.vault file (default is ./.env.vault)",
|
39
|
+
default_value: ".env.vault",
|
40
|
+
type: String)
|
38
41
|
]
|
39
42
|
end
|
40
43
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-dotenv_vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.0
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mileszim
|
@@ -227,9 +227,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: 2.6.0
|
228
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
229
|
requirements:
|
230
|
-
- - "
|
230
|
+
- - ">="
|
231
231
|
- !ruby/object:Gem::Version
|
232
|
-
version:
|
232
|
+
version: '0'
|
233
233
|
requirements: []
|
234
234
|
rubygems_version: 3.3.7
|
235
235
|
signing_key:
|