snippet_cli 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Setup.rb +2 -1
- 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: eecf2cdc1b2c47635644da99ed86bab885ccf82b2fca94f312a1dd10db633dac
|
4
|
+
data.tar.gz: 30af8bef8326c921eb3ed37e27eb6f64a876dfc44a642e67ad2990b2d4d68e66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2626f170243ad5b46c6b02e1412d0b77b44073865627ba12c3546742a8b908b23785b0bd6b7fb210f546840a363df07a27f06df6e6164a8a847e1d1cd873b13
|
7
|
+
data.tar.gz: e5a9c1a4091626052d8e08256740b21b7eaf25cb09168de3fd0344588bf37ab5410252f14dd70ca046b3f832c4ec63dcefe0746832db79da581ad4dfb88fdb6d
|
data/lib/Setup.rb
CHANGED
@@ -65,7 +65,8 @@ class Setup
|
|
65
65
|
if File.exist?("#{ENV["HOME"]}\\snippet_cli_config.txt") then
|
66
66
|
|
67
67
|
else
|
68
|
-
|
68
|
+
FileUtils.cd("#{ENV["HOME"]}")
|
69
|
+
FileUtils.touch("#{ENV["HOME"]}\\snippet_cli_config.txt")
|
69
70
|
File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "NAME = #{self.user_name}\n"}
|
70
71
|
File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "OS = #{self.user_os}\n"}
|
71
72
|
File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "STORAGE = #{self.user_storage}\n"}
|
data/lib/snippet_cli/version.rb
CHANGED