Skip to content

Commit 8f27e82

Browse files
committed
Tweak post_from task
1 parent 63ff8c9 commit 8f27e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ task :post do
1616
end
1717

1818
# Usage: rake post_from url="https://martinfowler.com/bliki/UserStory.html"
19-
desc "post_from"
19+
desc "ex.) rake post_from url=https://martinfowler.com/bliki/UserStory.html"
2020
task :post_from do
2121
require 'open-uri'
2222
require 'nokogiri'
@@ -32,7 +32,7 @@ task :post_from do
3232
}.uniq.join(', ') + "]"
3333
create_file_name = "#{t.strftime("%Y-%m-%d-")}#{title}.md"
3434

35-
puts "Creating new post: #{create_file_name}"
35+
puts "Creating new post: _posts/#{create_file_name}"
3636
filename = File.join("_posts", create_file_name)
3737
open(filename, 'w') do |post|
3838
post.puts "---"

0 commit comments

Comments
 (0)