Skip to content

Commit

Permalink
messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed May 27, 2016
1 parent 368c6f0 commit 3c171dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vapor
Original file line number Diff line number Diff line change
Expand Up @@ -547,15 +547,20 @@ struct New: Command {
let escapedName = "\"\(name)\"" // FIX: Doesn’t support names with quotes
try run("mkdir \(escapedName)")

print("Cloning example...")

try run("curl -L \(curlArgs) https://github.com/qutheory/vapor-example/archive/master.tar.gz -o \(escapedName)/vapor-example.tar.gz")

print("Unpacking...")

try run("tar -\(tarArgs)xzf \(escapedName)/vapor-example.tar.gz --strip-components=1 --directory \(escapedName)")
try run("rm \(escapedName)/vapor-example.tar.gz")
#if os(OSX)
try run("cd \(escapedName) && vapor xcode")
#endif

if commandExists("git") {
print("Initializing git repository if necessary")
print("Initializing git repository if necessary...")
system("git init \(escapedName)")
system("cd \(escapedName) && git add . && git commit -m \"initial vapor project setup\"")
print()
Expand Down

0 comments on commit 3c171dc

Please sign in to comment.