uhl-cap-recipes 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 0
5
- :build:
4
+ :patch: 1
5
+ :build:
@@ -24,6 +24,10 @@ Capistrano::Configuration.instance(true).load do |configuration|
24
24
  "#{`pwd`}".strip
25
25
  end
26
26
 
27
+ set :service_name do
28
+ "play-#{application}"
29
+ end
30
+
27
31
  _cset :_config, Array.new
28
32
  _cset :build_name, "ROOT"
29
33
  _cset :build_path, "not set.war"
@@ -50,12 +54,12 @@ Capistrano::Configuration.instance(true).load do |configuration|
50
54
 
51
55
  desc "start service"
52
56
  task :start_service do
53
- run "sc start #{service_name}"
57
+ sudo "/etc/init.d/#{service_name} start"
54
58
  end
55
59
 
56
60
  desc "stop service"
57
61
  task :stop_service do
58
- run "sc stop #{service_name}"
62
+ sudo "/etc/init.d/#{service_name} stop"
59
63
  end
60
64
 
61
65
  desc "stop and start service"
@@ -161,7 +165,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
161
165
  "fi",
162
166
  "mkdir -p #{local_gitrepo}/#{name}",
163
167
  "cd #{local_gitrepo}/#{name}",
164
- "cp #{play_path} . -r"
168
+ "cp #{play_path}/* . -r"
165
169
  ].join("; ")
166
170
  end
167
171
 
@@ -0,0 +1,85 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "uhl-cap-recipes"
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["crazycode"]
12
+ s.date = "2012-02-20"
13
+ s.description = "capistrano recipes for my works"
14
+ s.email = "crazycode@gmail.com"
15
+ s.executables = ["cap-recipes"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE",
18
+ "README.textile"
19
+ ]
20
+ s.files = [
21
+ "Capfile",
22
+ "LICENSE",
23
+ "README.textile",
24
+ "Rakefile",
25
+ "VERSION.yml",
26
+ "bin/cap-recipes",
27
+ "cap-recipes.gemspec",
28
+ "config/deploy.rb",
29
+ "examples/advanced/deploy.rb",
30
+ "examples/advanced/deploy/experimental.rb",
31
+ "examples/advanced/deploy/production.rb",
32
+ "examples/simple/deploy.rb",
33
+ "lib/cap_recipes.rb",
34
+ "lib/cap_recipes/tasks/gitdeploy.rb",
35
+ "lib/cap_recipes/tasks/gitdeploy/setup.rb",
36
+ "lib/cap_recipes/tasks/http.rb",
37
+ "lib/cap_recipes/tasks/play.rb",
38
+ "lib/cap_recipes/tasks/sdpdeploy/autoinstall.rb",
39
+ "lib/cap_recipes/tasks/sdpdeploy/iis.rb",
40
+ "lib/cap_recipes/tasks/sdpdeploy/sft.rb",
41
+ "lib/cap_recipes/tasks/sdpdeploy/sfttask.rb",
42
+ "lib/cap_recipes/tasks/templates/hudson.erb",
43
+ "lib/cap_recipes/tasks/templates/mongod.conf.erb",
44
+ "lib/cap_recipes/tasks/templates/mongodb.init.erb",
45
+ "lib/cap_recipes/tasks/templates/mongodb.repo.erb",
46
+ "lib/cap_recipes/tasks/templates/mongos.init.erb",
47
+ "lib/cap_recipes/tasks/templates/tomcat.erb",
48
+ "lib/cap_recipes/tasks/uhljenkins.rb",
49
+ "lib/cap_recipes/tasks/utilities.rb",
50
+ "lib/capify.rb",
51
+ "lib/templates/Capfile.tt",
52
+ "lib/templates/deploy.rb.tt",
53
+ "spec/cap/all/Capfile",
54
+ "spec/cap/helper.rb",
55
+ "spec/cap_recipes_spec.rb",
56
+ "spec/spec_helper.rb",
57
+ "specs.watchr",
58
+ "test.rb",
59
+ "uhl-cap-recipes.gemspec"
60
+ ]
61
+ s.homepage = "http://github.com/crazycode/uhl-cap-recipes"
62
+ s.require_paths = ["lib"]
63
+ s.rubyforge_project = "uhl-cap-recipes"
64
+ s.rubygems_version = "1.8.10"
65
+ s.summary = "Battle-tested capistrano recipes for passenger, delayed_job, and more"
66
+
67
+ if s.respond_to? :specification_version then
68
+ s.specification_version = 3
69
+
70
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
71
+ s.add_runtime_dependency(%q<capistrano>, [">= 0"])
72
+ s.add_runtime_dependency(%q<json>, [">= 0"])
73
+ s.add_runtime_dependency(%q<addressable>, [">= 0"])
74
+ else
75
+ s.add_dependency(%q<capistrano>, [">= 0"])
76
+ s.add_dependency(%q<json>, [">= 0"])
77
+ s.add_dependency(%q<addressable>, [">= 0"])
78
+ end
79
+ else
80
+ s.add_dependency(%q<capistrano>, [">= 0"])
81
+ s.add_dependency(%q<json>, [">= 0"])
82
+ s.add_dependency(%q<addressable>, [">= 0"])
83
+ end
84
+ end
85
+
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.0
4
+ version: 0.1.1
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-02-17 00:00:00.000000000 Z
12
+ date: 2012-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &8115820 !ruby/object:Gem::Requirement
16
+ requirement: &3327020 !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: *8115820
24
+ version_requirements: *3327020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &8115240 !ruby/object:Gem::Requirement
27
+ requirement: &3323340 !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: *8115240
35
+ version_requirements: *3323340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: addressable
38
- requirement: &8114340 !ruby/object:Gem::Requirement
38
+ requirement: &3320760 !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: *8114340
46
+ version_requirements: *3320760
47
47
  description: capistrano recipes for my works
48
48
  email: crazycode@gmail.com
49
49
  executables:
@@ -91,6 +91,7 @@ files:
91
91
  - spec/spec_helper.rb
92
92
  - specs.watchr
93
93
  - test.rb
94
+ - uhl-cap-recipes.gemspec
94
95
  homepage: http://github.com/crazycode/uhl-cap-recipes
95
96
  licenses: []
96
97
  post_install_message: