webtranslateit-safe 0.4.1 → 0.4.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 +4 -4
- data/CHANGELOG +9 -0
- data/bin/webtranslateit-safe +4 -4
- data/lib/webtranslateit/safe/config/builder.rb +2 -3
- data/lib/webtranslateit/safe.rb +0 -2
- metadata +3 -35
- data/.autotest +0 -3
- data/.document +0 -5
- data/.github/dependabot.yml +0 -26
- data/.github/release-drafter.yml +0 -36
- data/.github/workflows/ci.yml +0 -51
- data/.github/workflows/release-drafter.yml +0 -29
- data/.gitignore +0 -18
- data/.rspec +0 -3
- data/.rubocop.yml +0 -8
- data/.rubocop_todo.yml +0 -965
- data/Gemfile +0 -11
- data/Gemfile.lock +0 -89
- data/LICENSE.txt +0 -22
- data/Rakefile +0 -8
- data/TODO +0 -31
- data/lib/webtranslateit/safe/version.rb +0 -5
- data/spec/integration/archive_integration_spec.rb +0 -89
- data/spec/integration/cleanup_spec.rb +0 -62
- data/spec/spec_helper.rb +0 -7
- data/spec/webtranslateit/safe/archive_spec.rb +0 -67
- data/spec/webtranslateit/safe/cloudfiles_spec.rb +0 -175
- data/spec/webtranslateit/safe/config_spec.rb +0 -307
- data/spec/webtranslateit/safe/gpg_spec.rb +0 -148
- data/spec/webtranslateit/safe/gzip_spec.rb +0 -64
- data/spec/webtranslateit/safe/local_spec.rb +0 -109
- data/spec/webtranslateit/safe/mongodump_spec.rb +0 -54
- data/spec/webtranslateit/safe/mysqldump_spec.rb +0 -83
- data/spec/webtranslateit/safe/pgdump_spec.rb +0 -45
- data/spec/webtranslateit/safe/s3_spec.rb +0 -168
- data/spec/webtranslateit/safe/svndump_spec.rb +0 -39
- data/templates/script.rb +0 -183
- data/webtranslateit-safe.gemspec +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43afe3f6fffb6bb4178cfd6c6181767f67f7995f2e836d35c9d5c66556b567fb
|
4
|
+
data.tar.gz: 3fe840117d0c799b65edcafc92b57f73e7ba928297fe53bc1f8262059404e5fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ad57b335c7585cea8621bbd6007fcd1f2d10e6fe7ba9fa0b1381ce00ce96eb38eb11925912185e06ab3ba2e69ebec165b2fa9a268c0cbeeb0b765e43b166b6f
|
7
|
+
data.tar.gz: c51e5399dc02aa3fe4b0d0bfb99ed6397c9abdbc16ebf5dc8994d056151fcee9d340f0b8085d52f333d00b3eb8d1c0bbbd5b60c28afdde36b7065ed0a821492d
|
data/CHANGELOG
CHANGED
data/bin/webtranslateit-safe
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
|
5
|
-
require '
|
5
|
+
require 'webtranslateit/safe'
|
6
6
|
|
7
|
-
include
|
7
|
+
include WebTranslateIt::Safe
|
8
8
|
|
9
9
|
def die(msg)
|
10
10
|
puts "ERROR: #{msg}"
|
@@ -13,7 +13,7 @@ end
|
|
13
13
|
|
14
14
|
def usage
|
15
15
|
puts <<-END
|
16
|
-
Usage:
|
16
|
+
Usage: webtranslateit-safe [OPTIONS] CONFIG_FILE
|
17
17
|
Options:
|
18
18
|
-h, --help This help screen
|
19
19
|
-v, --verbose be verbose, duh!
|
@@ -47,7 +47,7 @@ def main
|
|
47
47
|
unless File.exist?(config_file)
|
48
48
|
die 'Missing configuration file. NOT CREATED! Rerun w/o the -n argument to create a template configuration file.' if is_dry
|
49
49
|
|
50
|
-
FileUtils.cp File.join(
|
50
|
+
FileUtils.cp File.join(WebTranslateIt::Safe::ROOT, 'templates', 'script.rb'), config_file
|
51
51
|
|
52
52
|
die "Created default #{config_file}. Please edit and run again."
|
53
53
|
end
|
@@ -70,9 +70,8 @@ module WebTranslateIt
|
|
70
70
|
:options, :user, :host, :port, :password, :key, :secret, :bucket,
|
71
71
|
:api_key, :container, :socket, :service_net, :repo_path
|
72
72
|
multi_value :skip_tables, :exclude, :files
|
73
|
-
|
74
|
-
:
|
75
|
-
mixed_value :s3, :local, :cloudfiles
|
73
|
+
mixed_value :s3, :local, :cloudfiles, :sftp, :mysqldump, :tar, :gpg, :keep, :pgdump, :tar, :svndump,
|
74
|
+
:ftp, :mongodump
|
76
75
|
collection :database, :archive, :repo
|
77
76
|
|
78
77
|
private
|
data/lib/webtranslateit/safe.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webtranslateit-safe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edouard Briere
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-s3
|
@@ -64,23 +64,8 @@ executables:
|
|
64
64
|
extensions: []
|
65
65
|
extra_rdoc_files: []
|
66
66
|
files:
|
67
|
-
- ".autotest"
|
68
|
-
- ".document"
|
69
|
-
- ".github/dependabot.yml"
|
70
|
-
- ".github/release-drafter.yml"
|
71
|
-
- ".github/workflows/ci.yml"
|
72
|
-
- ".github/workflows/release-drafter.yml"
|
73
|
-
- ".gitignore"
|
74
|
-
- ".rspec"
|
75
|
-
- ".rubocop.yml"
|
76
|
-
- ".rubocop_todo.yml"
|
77
67
|
- CHANGELOG
|
78
|
-
- Gemfile
|
79
|
-
- Gemfile.lock
|
80
|
-
- LICENSE.txt
|
81
68
|
- README.markdown
|
82
|
-
- Rakefile
|
83
|
-
- TODO
|
84
69
|
- bin/webtranslateit-safe
|
85
70
|
- lib/extensions/mktmpdir.rb
|
86
71
|
- lib/webtranslateit/safe.rb
|
@@ -104,23 +89,6 @@ files:
|
|
104
89
|
- lib/webtranslateit/safe/stream.rb
|
105
90
|
- lib/webtranslateit/safe/svndump.rb
|
106
91
|
- lib/webtranslateit/safe/tmp_file.rb
|
107
|
-
- lib/webtranslateit/safe/version.rb
|
108
|
-
- spec/integration/archive_integration_spec.rb
|
109
|
-
- spec/integration/cleanup_spec.rb
|
110
|
-
- spec/spec_helper.rb
|
111
|
-
- spec/webtranslateit/safe/archive_spec.rb
|
112
|
-
- spec/webtranslateit/safe/cloudfiles_spec.rb
|
113
|
-
- spec/webtranslateit/safe/config_spec.rb
|
114
|
-
- spec/webtranslateit/safe/gpg_spec.rb
|
115
|
-
- spec/webtranslateit/safe/gzip_spec.rb
|
116
|
-
- spec/webtranslateit/safe/local_spec.rb
|
117
|
-
- spec/webtranslateit/safe/mongodump_spec.rb
|
118
|
-
- spec/webtranslateit/safe/mysqldump_spec.rb
|
119
|
-
- spec/webtranslateit/safe/pgdump_spec.rb
|
120
|
-
- spec/webtranslateit/safe/s3_spec.rb
|
121
|
-
- spec/webtranslateit/safe/svndump_spec.rb
|
122
|
-
- templates/script.rb
|
123
|
-
- webtranslateit-safe.gemspec
|
124
92
|
homepage: http://github.com/webtranslateit/safe
|
125
93
|
licenses:
|
126
94
|
- MIT
|
@@ -141,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
109
|
- !ruby/object:Gem::Version
|
142
110
|
version: '0'
|
143
111
|
requirements: []
|
144
|
-
rubygems_version: 3.4.
|
112
|
+
rubygems_version: 3.4.14
|
145
113
|
signing_key:
|
146
114
|
specification_version: 4
|
147
115
|
summary: Backup filesystem and databases (MySQL and PostgreSQL) locally or to a remote
|
data/.autotest
DELETED
data/.document
DELETED
data/.github/dependabot.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# Please see the documentation for all configuration options:
|
2
|
-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
3
|
-
|
4
|
-
version: 2
|
5
|
-
updates:
|
6
|
-
- package-ecosystem: "bundler"
|
7
|
-
directory: "/"
|
8
|
-
schedule:
|
9
|
-
interval: "weekly"
|
10
|
-
day: "monday"
|
11
|
-
time: "04:00"
|
12
|
-
reviewers:
|
13
|
-
- edouard
|
14
|
-
assignees:
|
15
|
-
- edouard
|
16
|
-
|
17
|
-
- package-ecosystem: github-actions
|
18
|
-
directory: "/"
|
19
|
-
schedule:
|
20
|
-
interval: weekly
|
21
|
-
day: monday
|
22
|
-
time: "04:00"
|
23
|
-
reviewers:
|
24
|
-
- edouard
|
25
|
-
assignees:
|
26
|
-
- edouard
|
data/.github/release-drafter.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
name-template: '$RESOLVED_VERSION 🌈'
|
2
|
-
tag-template: '$RESOLVED_VERSION'
|
3
|
-
categories:
|
4
|
-
- title: '🚀 Features'
|
5
|
-
labels:
|
6
|
-
- 'feature'
|
7
|
-
- 'enhancement'
|
8
|
-
- title: '🐛 Bug Fixes'
|
9
|
-
labels:
|
10
|
-
- 'bug'
|
11
|
-
- 'design'
|
12
|
-
- 'performance'
|
13
|
-
- title: '🧰 Maintenance'
|
14
|
-
labels:
|
15
|
-
- 'admin'
|
16
|
-
- 'refactoring'
|
17
|
-
- 'dependencies'
|
18
|
-
- 'github_actions'
|
19
|
-
- 'tests'
|
20
|
-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
21
|
-
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
|
22
|
-
version-resolver:
|
23
|
-
major:
|
24
|
-
labels:
|
25
|
-
- 'major'
|
26
|
-
minor:
|
27
|
-
labels:
|
28
|
-
- 'minor'
|
29
|
-
patch:
|
30
|
-
labels:
|
31
|
-
- 'patch'
|
32
|
-
default: patch
|
33
|
-
template: |
|
34
|
-
## Changes
|
35
|
-
|
36
|
-
$CHANGES
|
data/.github/workflows/ci.yml
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
# This workflow uses actions that are not certified by GitHub.
|
2
|
-
# They are provided by a third-party and are governed by
|
3
|
-
# separate terms of service, privacy policy, and support
|
4
|
-
# documentation.
|
5
|
-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
-
|
8
|
-
name: Ruby
|
9
|
-
|
10
|
-
on: push
|
11
|
-
|
12
|
-
jobs:
|
13
|
-
test:
|
14
|
-
env:
|
15
|
-
COVERAGE: Y
|
16
|
-
CC_TEST_REPORTER_ID: 9eb2d68da2519eb132eb0c3e063c4b899247c7ebe390a68c286545fc9f346286
|
17
|
-
|
18
|
-
runs-on: ubuntu-latest
|
19
|
-
strategy:
|
20
|
-
matrix:
|
21
|
-
ruby-version: ['3.2']
|
22
|
-
|
23
|
-
steps:
|
24
|
-
- uses: actions/checkout@v3
|
25
|
-
- name: Set up Ruby
|
26
|
-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
27
|
-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
28
|
-
uses: ruby/setup-ruby@v1
|
29
|
-
with:
|
30
|
-
ruby-version: ${{ matrix.ruby-version }}
|
31
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
32
|
-
- name: Run tests
|
33
|
-
run: bundle exec rspec
|
34
|
-
|
35
|
-
linters:
|
36
|
-
name: Linters
|
37
|
-
runs-on: ubuntu-22.04
|
38
|
-
timeout-minutes: 10
|
39
|
-
|
40
|
-
steps:
|
41
|
-
- name: Checkout repository
|
42
|
-
uses: actions/checkout@v3
|
43
|
-
|
44
|
-
- name: Install ruby and gems
|
45
|
-
uses: ruby/setup-ruby@v1
|
46
|
-
with:
|
47
|
-
ruby-version: 3.2.0 # Use .ruby-version file instead of duplicating here and in Gemfile?
|
48
|
-
bundler-cache: true
|
49
|
-
|
50
|
-
- name: Run ruby linter
|
51
|
-
run: bundle exec rubocop --format github
|
@@ -1,29 +0,0 @@
|
|
1
|
-
name: Release Drafter
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
# branches to consider in the event; optional, defaults to all
|
6
|
-
branches:
|
7
|
-
- master
|
8
|
-
# pull_request event is required only for autolabeler
|
9
|
-
pull_request:
|
10
|
-
# Only following types are handled by the action, but one can default to all as well
|
11
|
-
types: [opened, reopened, synchronize]
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
update_release_draft:
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
steps:
|
17
|
-
# (Optional) GitHub Enterprise requires GHE_HOST variable set
|
18
|
-
#- name: Set GHE_HOST
|
19
|
-
# run: |
|
20
|
-
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
|
21
|
-
|
22
|
-
# Drafts your next Release notes as Pull Requests are merged into "master"
|
23
|
-
- uses: release-drafter/release-drafter@v5
|
24
|
-
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
|
25
|
-
# with:
|
26
|
-
# config-name: my-config.yml
|
27
|
-
# disable-autolabeler: true
|
28
|
-
env:
|
29
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.gitignore
DELETED
data/.rspec
DELETED