uhl-cap-recipes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/cap_recipes/tasks/play.rb +9 -10
- data/lib/cap_recipes/tasks/uhljenkins.rb +4 -5
- data/uhl-cap-recipes.gemspec +2 -2
- metadata +8 -8
data/VERSION.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Capistrano::Configuration.instance(true).load do |configuration|
|
3
3
|
set :use_sudo, true
|
4
4
|
|
5
|
-
_cset :deploy_to_parent, "/
|
5
|
+
_cset :deploy_to_parent, "/app"
|
6
6
|
_cset :branch, "master"
|
7
7
|
|
8
8
|
default_run_options[:pty] = true
|
@@ -12,11 +12,11 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
12
12
|
# you may need to create it and chown it over
|
13
13
|
# to :user (e.g. chown -R robotuser:robotuser /u)
|
14
14
|
set :deploy_to do
|
15
|
-
"#{deploy_to_parent}
|
15
|
+
"#{deploy_to_parent}/deploy"
|
16
16
|
end
|
17
17
|
|
18
18
|
set :deploy_to_gitrepo do
|
19
|
-
"#{deploy_to}
|
19
|
+
"#{deploy_to}/#{application}"
|
20
20
|
end
|
21
21
|
|
22
22
|
|
@@ -33,10 +33,9 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
33
33
|
_cset :build_path, "not set.war"
|
34
34
|
|
35
35
|
_cset :servers, ""
|
36
|
-
_cset :deploy_to, ""
|
37
36
|
|
38
37
|
set :local_git_dir do
|
39
|
-
"/tmp/localgit_#{application}"
|
38
|
+
"/app/tmp/localgit_#{application}"
|
40
39
|
end
|
41
40
|
set :local_gitrepo do
|
42
41
|
"#{local_git_dir}/#{application}"
|
@@ -53,19 +52,19 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
53
52
|
namespace :play do
|
54
53
|
|
55
54
|
desc "start service"
|
56
|
-
task :
|
55
|
+
task :start do
|
57
56
|
sudo "/etc/init.d/#{service_name} start"
|
58
57
|
end
|
59
58
|
|
60
59
|
desc "stop service"
|
61
|
-
task :
|
60
|
+
task :stop do
|
62
61
|
sudo "/etc/init.d/#{service_name} stop"
|
63
62
|
end
|
64
63
|
|
65
64
|
desc "stop and start service"
|
66
|
-
task :
|
67
|
-
play.
|
68
|
-
play.
|
65
|
+
task :restart do
|
66
|
+
play.stop
|
67
|
+
play.start
|
69
68
|
end
|
70
69
|
|
71
70
|
desc "setup remote and locate play dir"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Capistrano::Configuration.instance(true).load do |configuration|
|
3
3
|
set :use_sudo, true
|
4
4
|
|
5
|
-
_cset :deploy_to_parent, "/
|
5
|
+
_cset :deploy_to_parent, "/app"
|
6
6
|
_cset :branch, "master"
|
7
7
|
|
8
8
|
default_run_options[:pty] = true
|
@@ -12,14 +12,13 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
12
12
|
# you may need to create it and chown it over
|
13
13
|
# to :user (e.g. chown -R robotuser:robotuser /u)
|
14
14
|
set :deploy_to do
|
15
|
-
"#{deploy_to_parent}
|
15
|
+
"#{deploy_to_parent}/deploy"
|
16
16
|
end
|
17
17
|
|
18
18
|
set :deploy_to_gitrepo do
|
19
|
-
"#{deploy_to}
|
19
|
+
"#{deploy_to}/#{application}"
|
20
20
|
end
|
21
21
|
|
22
|
-
|
23
22
|
set :local_base_dir do
|
24
23
|
"#{`pwd`}".strip
|
25
24
|
end
|
@@ -32,7 +31,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
32
31
|
_cset :deploy_to, ""
|
33
32
|
|
34
33
|
set :local_git_dir do
|
35
|
-
"/tmp/localgit_#{application}"
|
34
|
+
"/app/tmp/localgit_#{application}"
|
36
35
|
end
|
37
36
|
set :local_gitrepo do
|
38
37
|
"#{local_git_dir}/#{application}"
|
data/uhl-cap-recipes.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "uhl-cap-recipes"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["crazycode"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-03-30"
|
13
13
|
s.description = "capistrano recipes for my works"
|
14
14
|
s.email = "crazycode@gmail.com"
|
15
15
|
s.executables = ["cap-recipes"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uhl-cap-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &15361360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *15361360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &15360420 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *15360420
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: addressable
|
38
|
-
requirement: &
|
38
|
+
requirement: &15359460 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *15359460
|
47
47
|
description: capistrano recipes for my works
|
48
48
|
email: crazycode@gmail.com
|
49
49
|
executables:
|