vlad-helpers 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/vlad-helpers.rb +10 -1
- data/vlad-helpers.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/lib/vlad-helpers.rb
CHANGED
@@ -2,7 +2,7 @@ namespace :vlad do
|
|
2
2
|
def check_usage(site)
|
3
3
|
if (site.nil? || site.size == 0)
|
4
4
|
puts "Usage: rake vlad:custom:setup[<domain-key>]\n e.g. rake vlad:custom:setup[www]"
|
5
|
-
puts " rake vlad:deploy[<domain-key>]\n e.g. rake vlad:deploy[www]"
|
5
|
+
puts " rake vlad:deploy[<domain-key>[,branch][,path-to-local-repo-dir]]\n e.g. rake vlad:deploy[www]"
|
6
6
|
exit(-1)
|
7
7
|
end
|
8
8
|
end
|
@@ -14,6 +14,15 @@ namespace :vlad do
|
|
14
14
|
set :rails_env, site
|
15
15
|
end
|
16
16
|
|
17
|
+
def local_repo(path)
|
18
|
+
if !path.nil? && !File.exists?(File.join(path, ".git"))
|
19
|
+
puts "ERROR: The path provided (#{path}) does not point to a git repo."
|
20
|
+
exit
|
21
|
+
end
|
22
|
+
|
23
|
+
set :local_repo_git_path, path
|
24
|
+
end
|
25
|
+
|
17
26
|
def custom_release(scm_branch)
|
18
27
|
if (scm_branch.nil? || scm_branch.size == 0)
|
19
28
|
set :branch, 'master'
|
data/vlad-helpers.gemspec
CHANGED