Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit73750b3

Browse files
committed
commited? rake task commits instead of fails. is run after build rake task in deploy pre-requisite
1 parent9ed84c4 commit73750b3

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
@@ -9,12 +9,12 @@ desc "Helper task to check if everything is committed."
99
task:commited?do
1010
output=`git status`
1111
unless/nothing to commit/. =~output
12-
fail"COMMIT YOUR CHANGES FIRST!"
12+
system"git commit -a"
1313
end
1414
end
1515

1616
desc"Deploys the project to master branch, expects the command `git` to be available."
17-
task:deploy=>[:commited?,:build]do
17+
task:deploy=>[:build,:commited?]do
1818
Dir.mktmpdirdo |tempdir|
1919
print"Copying generated site: _site/* ->#{tempdir}"
2020
FileUtils.cp_r"_site/.",tempdir

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp