railman-deployment 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railman/tasks/deployment.rake +1 -8
- data/lib/railman-deployment/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 816485d74430a15e0bd1b4ad6dddc7becdc6002c011912049487b29b097ec972
|
4
|
+
data.tar.gz: 9fd69f857274bdc31b00695dbe72bb1836b0e456d68a4810bb94b9da80b57bc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|