varslist 0.0.6 → 0.0.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/varslist +4 -0
  3. data/lib/varslist.rb +7 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f578f9de2cb52f6154d1787daae2615307207d9622489cfaad40a5d92589bad
4
- data.tar.gz: 108eea269734618b64b21ab5a80c856881b7bb28d4926cf91d171ea14e94e9a1
3
+ metadata.gz: d1d7241a9064fedd4345223ba66adc0ba6623ea8f576f2dae0e4c53700ef9013
4
+ data.tar.gz: 6f404ccc9867a09a00015d51f6d61d76bb27456852084e68648c1f9586db881a
5
5
  SHA512:
6
- metadata.gz: 724bb52c0adcde74f690d48a58a90935f165440674c619efb331cfa7bdef0e4ffd10445d4a49acf4e075553992c2ada0b2e06bcd27ad51f05d60f9fb7f5caca5
7
- data.tar.gz: f5210a9cb5e8105b33be6802ca8c81b49780a359e871b167f1921554376b63eea55d0102fd3375a9ecd8b3f118762132f127c6a6fc05f6f53022339ab676fe12
6
+ metadata.gz: dca53197bf5fca8e3b569b94736c252c21441780684e329adae94be13acda4d80f5370be02f56e18bab7a2c92432806a5f08c291d9cf6e8d75e5f90e4ef686df
7
+ data.tar.gz: 368199a27f4ed8b1306a490cf978d591fb345db76dcdb9950dfe7cbaa778ef70684ea5050dcb1c4e7ab5b5e6668136b762d01f34a14e682d03bce7dfa6a10f95
data/bin/varslist CHANGED
@@ -22,3 +22,7 @@ if ARGV.include?('--verify')
22
22
  Varslist.verify_var_list(env_vars)
23
23
  exit
24
24
  end
25
+
26
+ if ARGV.include?('--help')
27
+ Varslist.print_help
28
+ end
data/lib/varslist.rb CHANGED
@@ -23,6 +23,13 @@ module Varslist
23
23
  end
24
24
  env_use_list
25
25
  end
26
+
27
+ def self.print_help
28
+ puts "Help for Varslist".colorize(:magenta)
29
+ puts "Use varslist to show all the ENV variables used in all .rb and .erb files"
30
+ puts "--file = to show file list where the ENV variables are used"
31
+ puts "--verify = to verify if all the ENV variable are valid"
32
+ end
26
33
 
27
34
 
28
35
  def self.check_var_name(line)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: varslist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sumit Pati