vlad-helpers 0.1.1 → 0.2.0
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 +18 -13
- data/vlad-helpers.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/vlad-helpers.rb
CHANGED
@@ -16,11 +16,12 @@ namespace :vlad do
|
|
16
16
|
|
17
17
|
def custom_release(branch)
|
18
18
|
if (branch.nil? || branch.size == 0)
|
19
|
-
set :branch,
|
19
|
+
set :branch, 'master'
|
20
20
|
else
|
21
|
-
set :release_name, release_name + "_" + branch
|
22
21
|
set :branch, branch
|
23
22
|
end
|
23
|
+
|
24
|
+
set :release_name, release_name + "_" + branch
|
24
25
|
end
|
25
26
|
|
26
27
|
remote_task "seed" do
|
@@ -43,20 +44,24 @@ namespace :vlad do
|
|
43
44
|
end
|
44
45
|
|
45
46
|
task :bundle do
|
46
|
-
if (application.size
|
47
|
-
git_cmd = branch ? "git clone -b #{branch} #{git_connection}:#{application}.git /tmp/#{release_name}" :
|
48
|
-
"git clone #{git_connection}:#{application}.git /tmp/#{release_name}"
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
sh [ "rm -rf /tmp/#{release_name}",
|
53
|
-
git_cmd,
|
54
|
-
"cd /tmp && tar --exclude=.git -czf #{release_name}.tgz #{release_name}"
|
55
|
-
].join(" && ")
|
56
|
-
else
|
47
|
+
if (application.size <= 0)
|
57
48
|
puts "You must set the application name."
|
58
49
|
exit(-1)
|
59
50
|
end
|
51
|
+
|
52
|
+
if (local_repo_git_path.size > 0)
|
53
|
+
git_cmd = "git clone -l -b #{branch} #{local_repo_git_path} /tmp/#{release_name}"
|
54
|
+
else
|
55
|
+
# git_cmd = branch ? "git clone -b #{branch} #{git_connection}:#{application}.git /tmp/#{release_name}" :
|
56
|
+
# "git clone #{git_connection}:#{application}.git /tmp/#{release_name}"
|
57
|
+
git_cmd = "git clone -b #{branch} #{git_connection}:#{application}.git /tmp/#{release_name}"
|
58
|
+
end
|
59
|
+
|
60
|
+
sh [ "rm -rf /tmp/#{release_name}",
|
61
|
+
git_cmd,
|
62
|
+
"cd /tmp && tar --exclude=.git -czf #{release_name}.tgz #{release_name}"
|
63
|
+
].join(" && ")
|
64
|
+
|
60
65
|
end
|
61
66
|
|
62
67
|
task :transfer do
|
data/vlad-helpers.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vlad-helpers}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
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"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-13}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{kevin@conceptsahead.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kevin McFadden
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-13 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|