vlad-helpers 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vlad-helpers}
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kevin McFadden"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin McFadden