mina-dotenv 0.2.0 → 0.2.1
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 +4 -4
- data/lib/mina/dotenv/tasks.rb +6 -0
- data/lib/mina/dotenv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 947ee168136798c8b75f9c99517aa6634b63c730
|
4
|
+
data.tar.gz: 639780c25e47372fbc699249c9b92566687c2fc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d00b88b2aee669be7bd0f0e1ccaa2fe6f72fdfc5e481428264753065b5d1b8c1ca75e1ac6c644a152aed15bb2aba3642852c6c2b1de610c77d954f36ad1f9857
|
7
|
+
data.tar.gz: 660d886f55a426f6c7284644f20946aff6fe474c8d03cb690c7e9880e9214de145506ccc941a98a47a196ce061610a4ed2c05f5cbf4802b5fbcd80831c28e0cb
|
data/lib/mina/dotenv/tasks.rb
CHANGED
@@ -15,6 +15,12 @@ namespace :dotenv do
|
|
15
15
|
desc 'Copies the remote .env file to the current directory'
|
16
16
|
task :pull do
|
17
17
|
scp_download(remote_dotenv_path, dotenv_location)
|
18
|
+
add_to_gitignore_command = %(
|
19
|
+
if [[ -z $(grep #{dotenv_location} .gitignore) ]];
|
20
|
+
then echo #{dotenv_location} >> .gitignore;
|
21
|
+
fi;
|
22
|
+
)
|
23
|
+
`#{add_to_gitignore_command}`
|
18
24
|
end
|
19
25
|
end
|
20
26
|
|
data/lib/mina/dotenv/version.rb
CHANGED