panda-motd 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/panda_motd.rb +5 -1
- data/lib/panda_motd/config.rb +4 -1
- data/lib/panda_motd/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: b5971befc8f39c5194983b38abb1918e56636c6a35a71e2dc42243983fd6a426
|
4
|
+
data.tar.gz: 7a4c4206471c1ad63dcb231e742d447d415c6ab13f6f1334073d218268a4d89a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d426d6dffe2c208109ad099e6fdb68891e59ae07f42c9cdb80de23f9041776862cf102c9d913441692ddb96ccb1d392084cc473629f387e8165a4c4581160f3
|
7
|
+
data.tar.gz: baf84a939e6a697b6af473b3bf76d216c2e957d15eb67221c07fad3b0f917ccc4698ab7d54e03ed2d00da65f01eadb1fa8098f5285992c074085e5ef2d7a60f5
|
data/lib/panda_motd.rb
CHANGED
data/lib/panda_motd/config.rb
CHANGED
@@ -4,7 +4,10 @@ require 'fileutils'
|
|
4
4
|
class Config
|
5
5
|
def initialize(file_path = nil)
|
6
6
|
@file_path = file_path.nil? ? File.join(Dir.home, '.config', 'panda-motd.yaml') : file_path
|
7
|
-
|
7
|
+
unless File.exist?(@file_path)
|
8
|
+
create_config(@file_path)
|
9
|
+
puts "panda-motd created a default config file at: #{@file_path}"
|
10
|
+
end
|
8
11
|
load_config(@file_path)
|
9
12
|
end
|
10
13
|
|
data/lib/panda_motd/version.rb
CHANGED