snippet_cli 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/snippet_cli +0 -0
- data/lib/Setup.rb +5 -5
- data/lib/snippet_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 657486002bc2d360c27c7c99aef89444bc0568cbfbb9014b31320b45e327d658
|
4
|
+
data.tar.gz: '087e66f9b9da46283e6caa6bb5559c34db1c1dc239161f6fccce2859bfa17301'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 549e67aa41e8f8c6d07ffd943b9ce872fa3a7890c6e2b1735b5e50c1ca2c9217db366c7e54bc11c6b7bc63029efa73d8fb6facc26ee65f840b64c2437b6448ab
|
7
|
+
data.tar.gz: 2628d10518b17461f00b05a045e95f8334ab0d65e408d4c1dd457f65a83808180e5918e685828979fdc4dddb3dcd03684cc073453e4d2b08f99a63dfe5fb8693
|
data/exe/snippet_cli
CHANGED
File without changes
|
data/lib/Setup.rb
CHANGED
@@ -62,13 +62,13 @@ class Setup
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def generate_config()
|
65
|
-
if File.exist?("#{ENV["HOME"]}/
|
65
|
+
if File.exist?("#{ENV["HOME"]}/snippet_cli_config.txt") then
|
66
66
|
|
67
67
|
else
|
68
|
-
File.open("#{ENV["HOME"]}/
|
69
|
-
File.open("#{ENV["HOME"]}/
|
70
|
-
File.open("#{ENV["HOME"]}/
|
71
|
-
File.open("#{ENV["HOME"]}/
|
68
|
+
File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "NAME = #{self.user_name}\n"}
|
69
|
+
File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "OS = #{self.user_os}\n"}
|
70
|
+
File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "STORAGE = #{self.user_storage}\n"}
|
71
|
+
File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "CONFIG_PRESENT = TRUE\n"}
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
data/lib/snippet_cli/version.rb
CHANGED