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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2fd6e0a2e577fc5da802286b310b10ba6a6a6156e18018e8752e7d6721eb722
4
- data.tar.gz: 276d6515eb28126be934ed82c3cf128ca509150325b1ce06b5bd8db95f81c0d6
3
+ metadata.gz: b5971befc8f39c5194983b38abb1918e56636c6a35a71e2dc42243983fd6a426
4
+ data.tar.gz: 7a4c4206471c1ad63dcb231e742d447d415c6ab13f6f1334073d218268a4d89a
5
5
  SHA512:
6
- metadata.gz: 8d7ba00265bd290738b77b3493e0ada6cc4bd42f13dd8dfdcd69fdf1eb1143396299bab7da17ffa597d4507d0979043511642eafcde06f8a62208274a1ef389b
7
- data.tar.gz: 1790ef2779623a5c8d9cf00cb7b56d20b4130ee52d8894bc2545a7b7ff1ceeb7e5c775382c961d6123050fddc6de88ee24dc179dbb1487b65df6e760e227dd4d
6
+ metadata.gz: 7d426d6dffe2c208109ad099e6fdb68891e59ae07f42c9cdb80de23f9041776862cf102c9d913441692ddb96ccb1d392084cc473629f387e8165a4c4581160f3
7
+ data.tar.gz: baf84a939e6a697b6af473b3bf76d216c2e957d15eb67221c07fad3b0f917ccc4698ab7d54e03ed2d00da65f01eadb1fa8098f5285992c074085e5ef2d7a60f5
data/lib/panda_motd.rb CHANGED
@@ -3,6 +3,10 @@ require_rel 'panda_motd'
3
3
 
4
4
  class PandaMOTD
5
5
  def self.new_motd
6
- return MOTD.new
6
+ if ARGV[0].nil?
7
+ puts 'You must provide a config file path as an argument to panda-motd.'
8
+ else
9
+ return MOTD.new(ARGV[0])
10
+ end
7
11
  end
8
12
  end
@@ -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
- create_config(@file_path) unless File.exist?(@file_path)
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
 
@@ -1,4 +1,4 @@
1
1
  class PandaMOTD
2
2
  #:nodoc:
3
- VERSION ||= '0.0.5'.freeze
3
+ VERSION ||= '0.0.6'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda-motd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Thurlow