openteam-capistrano 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openteam/capistrano/setup_deploy.rb +13 -15
- data/openteam-capistrano.gemspec +1 -1
- metadata +3 -3
@@ -1,24 +1,22 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
|
-
after 'multistage:ensure', '
|
2
|
+
after 'multistage:ensure', 'openteam_capistrano_setup_deploy'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
set :deploy_config, YAML::load(File.open('config/deploy.yml'))[stage.to_s]
|
4
|
+
task :openteam_capistrano_setup_deploy do
|
5
|
+
set :deploy_config, YAML::load(File.open('config/deploy.yml'))[stage.to_s]
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
# application name
|
8
|
+
set :application, deploy_config['application']
|
10
9
|
|
11
|
-
|
12
|
-
|
10
|
+
# deployment host
|
11
|
+
set :domain, deploy_config['domain']
|
13
12
|
|
14
|
-
|
15
|
-
|
13
|
+
# deloyment gateway
|
14
|
+
set:gateway, deploy_config['gateway'] if deploy_config.has_key? 'gateway'
|
16
15
|
|
17
|
-
|
18
|
-
|
16
|
+
# application root
|
17
|
+
set :deploy_to, "/srv/#{application}"
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
end
|
19
|
+
# setup server
|
20
|
+
server domain, :app, :web, :db, :primary => true
|
23
21
|
end
|
24
22
|
end
|
data/openteam-capistrano.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'openteam-capistrano'
|
7
|
-
gem.version = '0.0.
|
7
|
+
gem.version = '0.0.7'
|
8
8
|
gem.authors = ["OpenTeam developers"]
|
9
9
|
gem.email = ["developers@openteam.ru"]
|
10
10
|
gem.description = %q{OpenTeam common capistrano recipe}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openteam-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
segments:
|
129
129
|
- 0
|
130
|
-
hash:
|
130
|
+
hash: 3278497435865315661
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
segments:
|
138
138
|
- 0
|
139
|
-
hash:
|
139
|
+
hash: 3278497435865315661
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
142
|
rubygems_version: 1.8.24
|