railman-deployment 2.0.2 → 2.0.3

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
  SHA256:
3
- metadata.gz: a38e1a522eedbbade3e672bb23f55d49429179f2c61942279ecdd55536f61565
4
- data.tar.gz: fba0e7dc05caa80d8e959b44cba36acb24a1cee93bbd8390e246c0196dcd2ee8
3
+ metadata.gz: 816485d74430a15e0bd1b4ad6dddc7becdc6002c011912049487b29b097ec972
4
+ data.tar.gz: 9fd69f857274bdc31b00695dbe72bb1836b0e456d68a4810bb94b9da80b57bc7
5
5
  SHA512:
6
- metadata.gz: 15e348b09371d9ef1ce2d32dc8611d781bdc9268d5418a99acdd77d2b83aa1ed972df10bc03093153105c5682c19b3f569c72b8d24492384170d0f2bf87bd0bd
7
- data.tar.gz: 160aaf97a1987b38e856813d7c5af4513ba0f836ed0da71deba6c0b8661b4e4e18cafbd4710c5156387e12184e7cac04e5dfceca3529070ad9c5cad89227207d
6
+ metadata.gz: 064c8b3ac7f247a63509f1dbaae8cbd061586a1ce965354290d2eb8bcc00b31ba17b1282f075a22a1b7f1228c4761d109585fcf16755e74a5c8b69f6faa96330
7
+ data.tar.gz: 81d071628e65a2b5b01a10dc78548022c7d6cc01cbe0e2a2729a46878c7c09a0436d242bf725388c6e2b7bb43421aaebbe05a2b2138a469aca78b986094c9f02
@@ -66,7 +66,6 @@ task :remove do
66
66
  end
67
67
  end
68
68
 
69
- # OK!
70
69
  desc 'Deploy rails application'
71
70
  task :deploy do
72
71
  on roles(:all) do
@@ -84,12 +83,11 @@ task :deploy do
84
83
  end
85
84
  end
86
85
 
87
- # OK!
88
86
  desc 'Copy database from the server to the local machine'
89
87
  task :update do
90
88
  on roles(:all) do
91
89
  within fetch(:deploy_to) do
92
- execute :pg_dump, "-U deploy --clean #{fetch(:application)}_production > db/#{fetch(:application)}.sql"
90
+ execute :pg_dump, "-U rails -h localhost --clean #{fetch(:application)}_production > db/#{fetch(:application)}.sql"
93
91
  download! "#{fetch(:deploy_to)}/db/#{fetch(:application)}.sql", 'db'
94
92
  end
95
93
  end
@@ -99,7 +97,6 @@ task :update do
99
97
  end
100
98
  end
101
99
 
102
- # OK!
103
100
  desc "Recreate server database from db/#{fetch(:application)}.sql and sync local dirs if any"
104
101
  task :reset_server do
105
102
  on roles(:all) do
@@ -119,7 +116,6 @@ task :reset_server do
119
116
  end
120
117
  end
121
118
 
122
- # OK!
123
119
  task :sync_local_dirs_to_server do
124
120
  on roles(:all) do
125
121
  fetch(:sync_dirs, []).each do |sync_dir|
@@ -130,7 +126,6 @@ task :sync_local_dirs_to_server do
130
126
  end
131
127
  end
132
128
 
133
- # OK!
134
129
  task :sync_local_dirs_from_server do
135
130
  on roles(:all) do
136
131
  fetch(:sync_dirs, []).each do |sync_dir|
@@ -141,7 +136,6 @@ task :sync_local_dirs_from_server do
141
136
  end
142
137
  end
143
138
 
144
- # OK!
145
139
  task :fetch_and_reset_git_repository do
146
140
  on roles(:all) do
147
141
  with fetch(:environment) do
@@ -153,7 +147,6 @@ task :fetch_and_reset_git_repository do
153
147
  end
154
148
  end
155
149
 
156
- # OK!
157
150
  task :create_database_from_sql_file do
158
151
  on roles(:all) do
159
152
  with fetch(:environment) do
@@ -1,3 +1,3 @@
1
1
  module RailmanDeployment
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railman-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler