teleporter 2.0.10 → 2.0.11
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.
- checksums.yaml +4 -4
- data/lib/generators/teleport/capistrano.rb +0 -3
- data/lib/generators/teleport/templates/capistrano/deploy/deploy.rb.tt +0 -2
- data/lib/generators/teleport/templates/capistrano/deploy/production.rb.tt +2 -1
- data/lib/generators/teleport/templates/capistrano/deploy/staging.rb.tt +2 -1
- data/lib/generators/teleport/templates/capistrano/tasks/setup_config.rake +1 -3
- data/lib/generators/teleport/templates/capistrano/tasks/setup_db.rake +2 -2
- data/lib/teleporter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b210d332c23d4e0c84087864dfe8e06cb90b580
|
|
4
|
+
data.tar.gz: 09b1c02581376875059b007788f02d19a230ac3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33e66b2ea59f6789f7c04c6caa4adc5ecbb9103b9a6fbf0a8eefeaa4e55cc8d805dbcf422ae31ff471584aac073bd5545f5092f5a1bdc5c7022296849069a8d8
|
|
7
|
+
data.tar.gz: 92c1299b54e7e65052041b36f3b369fb6e5c5fc7177457becee4547b48af6b74324f674d53228ff1f3f79c2c949a4ac803e0b4379bb9b4c630d8d0b48559db06
|
|
@@ -28,9 +28,6 @@ module Teleport
|
|
|
28
28
|
insert_into_file "Capfile",
|
|
29
29
|
"require 'capistrano/sidekiq'\n",
|
|
30
30
|
after: "require 'capistrano/rails/migrations'\n"
|
|
31
|
-
insert_into_file "Capfile",
|
|
32
|
-
"require 'capistrano/puma'\n",
|
|
33
|
-
after: "require 'capistrano/sidekiq'\n"
|
|
34
31
|
insert_into_file "Capfile",
|
|
35
32
|
%Q{
|
|
36
33
|
require 'capistrano/puma'
|
|
@@ -25,8 +25,6 @@ namespace :deploy do
|
|
|
25
25
|
])
|
|
26
26
|
execute :mkdir, "-p #{shared_path}/config"
|
|
27
27
|
execute :mkdir, "-p #{current_path}"
|
|
28
|
-
application = fetch(:application)
|
|
29
|
-
stage = fetch(:stage)
|
|
30
28
|
|
|
31
29
|
config_files = fetch(:config_files)
|
|
32
30
|
config_files.each do |file|
|
|
@@ -72,7 +70,7 @@ end
|
|
|
72
70
|
def sub_strings(input_string)
|
|
73
71
|
output_string = input_string
|
|
74
72
|
input_string.scan(/{{(\w*)}}/).each do |var|
|
|
75
|
-
output_string.gsub!("{{#{var[0]}}}", fetch(var[0].to_sym))
|
|
73
|
+
output_string.gsub!("{{#{var[0]}}}", fetch(var[0].to_sym).to_s)
|
|
76
74
|
end
|
|
77
75
|
output_string
|
|
78
76
|
end
|
|
@@ -21,7 +21,7 @@ namespace :deploy do
|
|
|
21
21
|
timeout: 5000
|
|
22
22
|
encoding: utf8
|
|
23
23
|
reconnect: false
|
|
24
|
-
database: #{fetch(:application)}
|
|
24
|
+
database: #{fetch(:application)}_#{fetch(:stage)}
|
|
25
25
|
pool: 5
|
|
26
26
|
username: #{fetch(:deploy_user)}
|
|
27
27
|
password: #{fetch(:db_password)}
|
|
@@ -44,7 +44,7 @@ namespace :deploy do
|
|
|
44
44
|
rescue Exception
|
|
45
45
|
end
|
|
46
46
|
begin
|
|
47
|
-
execute %Q{echo "CREATE DATABASE #{fetch(:application)} WITH OWNER #{fetch(:deploy_user)} ENCODING 'UTF8';" | sudo -u postgres psql}
|
|
47
|
+
execute %Q{echo "CREATE DATABASE #{fetch(:application)}_#{fetch(:stage)} WITH OWNER #{fetch(:deploy_user)} ENCODING 'UTF8';" | sudo -u postgres psql}
|
|
48
48
|
rescue Exception
|
|
49
49
|
end
|
|
50
50
|
end
|
data/lib/teleporter/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: teleporter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ponomarev Nikolay
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|