FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeception.github.com/RoboFile.php at master · ScottHuber/codeception.github.com · GitHub
ScottHuber
/
codeception.github.com
Public
forked from
Codeception/codeception.github.com
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
codeception.github.com
/
RoboFile.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (26 loc) · 538 Bytes
Breadcrumbs
codeception.github.com
/
RoboFile.php
Copy path
File metadata and controls
28 lines (26 loc) · 538 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
class
RoboFile
extends
\
Robo
\Tasks
{
function
post
()
{
$
title
=
$
this
->
ask
(
"
Post title
"
);
$
file
=
strtolower
(
str_replace
([
'
'
,
'
:
'
], [
'
-
'
,
'
-
'
],
$
title
));
$
date
=
date
(
'
Y-m-d
'
);
$
this
->
taskWriteToFile
(
"
_posts/
$
date
-
$
file
.markdown
"
)
->
line
(
'
---
'
)
->
line
(
'
layout: post
'
)
->
line
(
"
title:
\"
$
title
\""
)
->
line
(
"
date:
$
date
01:03:50
"
)
->
line
(
"
---
\n"
)
->
run
();
}
function
publish
()
{
$
this
->
taskGitStack
()
->
add
(
'
-A
'
)
->
commit
(
'
updated
'
)
->
pull
()
->
push
()
->
run
();
}
}
Back
|
FazBrowse Home
|
New Git URL