Make Thor tasks more visible; Init Pages submodule when not present if about to run tests that require it

This commit is contained in:
Davis W. Frank
2012-04-09 22:21:09 -07:00
parent fbbccf6ef7
commit 079740ca2c
5 changed files with 40 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ class JasmineDev < Thor
def node_installed?
return true if has_node?
say "Node.js is required to develop Jasmine. Please visit http://nodejs.org to install. ",
say "Node.js is required to develop Jasmine. Please visit http://nodejs.org to install.",
:red
false
end
@@ -48,7 +48,7 @@ class JasmineDev < Thor
end
def has_pages_submodule?
File.exist?(File.join(JasmineDev.project_root, 'pages', 'download.html'))
File.exist?(File.join(JasmineDev.project_root, 'pages', 'index.html'))
end
end
end