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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b695b5ced85a0ad75c33028a396f322e9b8a3d5f
4
- data.tar.gz: 28ba326e9816865229cb0b0c8f383598e96f3c56
3
+ metadata.gz: 7b210d332c23d4e0c84087864dfe8e06cb90b580
4
+ data.tar.gz: 09b1c02581376875059b007788f02d19a230ac3f
5
5
  SHA512:
6
- metadata.gz: e35464cf955ec872623ad479d8e0f8e0ad61803c542c4d7d19595b141b4e746d451e0bd5b9af691805f451c0edeb1d19bcc6e6ebdb443914e60006ab51ba7052
7
- data.tar.gz: 92f93c88c9533067e2aea218dbd9ffc44593df6186f9ed532a31b3b123e967b871f34d59f734f68e022c523580a0556eb81af6b7fb98abbe6a0264274e25d2cb
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'
@@ -1,5 +1,3 @@
1
- lock '3.2.1'
2
-
3
1
  set :repo_url, '<%= @git_repo_url %>'
4
2
  set :application, '<%= @app_name %>'
5
3
  set :deploy_to, -> { "/home/#{fetch(:deploy_user)}/apps/#{fetch(:application)}_#{fetch(:stage)}" }
@@ -1,6 +1,7 @@
1
1
  set :stage, :production
2
2
  set :rails_env, :production
3
- set :branch, "master"
3
+ set :branch, 'master'
4
+
4
5
  set :deploy_user, '<%= @deploy_user %>'
5
6
  set :ip, '<%= @production_server_address %>'
6
7
 
@@ -1,6 +1,7 @@
1
1
  set :stage, :staging
2
2
  set :rails_env, :staging
3
- set :branch, "master"
3
+ set :branch, 'master'
4
+
4
5
  set :deploy_user, '<%= @deploy_user %>'
5
6
  set :ip, '<%= @staging_server_address %>'
6
7
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Teleporter
2
- VERSION = "2.0.10"
2
+ VERSION = "2.0.11"
3
3
  end
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.10
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-17 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties