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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b0c70f48df92a5ea2b107e1c49ed0d0c89c559b6
4
- data.tar.gz: cb93d27eb4c5482f178e1ae06f0104281ae94977
2
+ SHA256:
3
+ metadata.gz: 1cdf8c1e9f2e560c1114a6eb2f381a7e5e49894de2ee90c9cbdba835a6f28158
4
+ data.tar.gz: c676978fe4795038836163c98ecb7248cbd747a7597641615b6ca8be262381a7
5
5
  SHA512:
6
- metadata.gz: 4b42a9bcdb1164efb44fb2261cf5420964fe89d387e0fcac7067e6c9c21d4c0fb8b7f8b7bbcaa053bb4857f7e3b14bb2ff120647ac9c9cf661502f02eae4e288
7
- data.tar.gz: 4b173a839fda781e8d02f4c9006473ecc6fd5d93b7dd9330b060d7dcca257dc4ffe2ca52092345a089e5102da2f584c61298e7c311629ba9c6ef0ce580c54555
6
+ metadata.gz: 9e537cd0081b640ed1c5f1b1fe1c9483ae6063924f62c58b7a187ebd6ace5457758658e2718faa9778139a4c5370902b5753b974c2b9734ad903763e46e15bf4
7
+ data.tar.gz: 7bf92e36b2f4d5188bfd8ead0c5b767b671eef6ee01baf8cb6f2058956a8a27c402df949f2c431c244d3619af7e866e1c5d6b45438ed14d2672018dbc31ea463
@@ -5,6 +5,7 @@ task :config do
5
5
  invoke 'postgres:install'
6
6
  invoke 'nginx:install'
7
7
  invoke 'nodejs:install'
8
+ invoke 'yarn:install'
8
9
  invoke 'app:prepare'
9
10
  invoke 'deploy:upload_linked_files'
10
11
  # invoke 'app:db_prepare'
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module PrunOps
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.17"
3
3
  end
@@ -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.12
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: 2018-11-01 00:00:00.000000000 Z
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
- rubyforge_project:
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