prun-ops 0.2.12 → 0.2.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/capistrano/config/config.rake +1 -0
- data/lib/capistrano/config/yarn.rake +12 -0
- data/lib/capistrano/diagnosis.rake +1 -0
- data/lib/prun-ops/version.rb +1 -1
- data/lib/tasks/db.rake +3 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1cdf8c1e9f2e560c1114a6eb2f381a7e5e49894de2ee90c9cbdba835a6f28158
|
4
|
+
data.tar.gz: c676978fe4795038836163c98ecb7248cbd747a7597641615b6ca8be262381a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e537cd0081b640ed1c5f1b1fe1c9483ae6063924f62c58b7a187ebd6ace5457758658e2718faa9778139a4c5370902b5753b974c2b9734ad903763e46e15bf4
|
7
|
+
data.tar.gz: 7bf92e36b2f4d5188bfd8ead0c5b767b671eef6ee01baf8cb6f2058956a8a27c402df949f2c431c244d3619af7e866e1c5d6b45438ed14d2672018dbc31ea463
|
@@ -0,0 +1,12 @@
|
|
1
|
+
namespace :yarn do
|
2
|
+
task :install do
|
3
|
+
on roles :app do
|
4
|
+
execute <<-EOBLOCK
|
5
|
+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
6
|
+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
7
|
+
apt-get -qq update && apt-get install -y yarn
|
8
|
+
yarn install --check-files
|
9
|
+
EOBLOCK
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -95,6 +95,7 @@ end
|
|
95
95
|
def upload_scp(host, file_path)
|
96
96
|
cmd = %w[scp]
|
97
97
|
opts = fetch(:ssh_options)
|
98
|
+
cmd << "-r -o StrictHostKeyChecking=no"
|
98
99
|
cmd << "-oProxyCommand='#{opts[:proxy].command_line_template}'" if opts
|
99
100
|
cmd << file_path
|
100
101
|
cmd << "#{host.user}@#{host.hostname}:/tmp"
|
data/lib/prun-ops/version.rb
CHANGED
data/lib/tasks/db.rake
CHANGED
@@ -10,18 +10,19 @@ namespace :db do
|
|
10
10
|
|
11
11
|
desc "Backup the database tp tmp/db.sql file"
|
12
12
|
task backup: :get_db_config do
|
13
|
-
sh "export PGPASSWORD=#{@password} && pg_dump #{@database} --host #{@host} -U #{@username} -f #{@default_filename}"
|
13
|
+
sh "export PGPASSWORD=#{@password} && pg_dump #{@database} --host #{@host} --port #{@port} -U #{@username} -f #{@default_filename}"
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Restore the database from tmp/db.sql file if no one is passed"
|
17
17
|
task restore: [:drop, :create, :get_db_config] do
|
18
|
-
sh "export PGPASSWORD=#{@password} && psql -d #{@database} -U #{@username} -h #{@host} < #{filename}"
|
18
|
+
sh "export PGPASSWORD=#{@password} && psql -d #{@database} -U #{@username} -h #{@host} --port #{@port} < #{filename}"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
task :get_db_config do
|
23
23
|
config = Rails.configuration.database_configuration
|
24
24
|
@host = config[Rails.env]["host"]
|
25
|
+
@port = config[Rails.env]["port"]
|
25
26
|
@database = config[Rails.env]["database"]
|
26
27
|
@username = config[Rails.env]["username"]
|
27
28
|
@password = config[Rails.env]["password"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prun-ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Lebrijo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- lib/capistrano/config/templates/vhost.conf.erb
|
124
124
|
- lib/capistrano/config/templates/vhost_ssl.conf.erb
|
125
125
|
- lib/capistrano/config/ubuntu.rake
|
126
|
+
- lib/capistrano/config/yarn.rake
|
126
127
|
- lib/capistrano/diagnosis.rake
|
127
128
|
- lib/capistrano/git.rake
|
128
129
|
- lib/capistrano/prun-ops.rb
|
@@ -154,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
155
|
- !ruby/object:Gem::Version
|
155
156
|
version: '0'
|
156
157
|
requirements: []
|
157
|
-
|
158
|
-
rubygems_version: 2.4.5
|
158
|
+
rubygems_version: 3.0.6
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Encapsulates Deployment and Manteinance Operations commands needed for a
|