martilla 0.2.1 → 0.2.2

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
2
  SHA256:
3
- metadata.gz: b9d31f371877ecf3b302768977e737291d3d9445b381919c4b16f90103d43748
4
- data.tar.gz: 783aff8488c1a399642de09dd09f70fb6f0fc3011542d6f3b1e8de25901d3e83
3
+ metadata.gz: 7762784e1d316afe26bfa62f739552de6a94fdc53d8891721d147be01bdc0876
4
+ data.tar.gz: 4ed98cb182476da8481827407ba2a0dff28397d1d417403f0b7e6d07779bdba5
5
5
  SHA512:
6
- metadata.gz: 93c36f6e9fc9a1e0db8bce2241c87071c26c2a9a40d4bc27b62339427c9c5684c0156afc74dcf023008139e7070cc50b4ad24a5dc808ee0bf91c8ab9d8692aa5
7
- data.tar.gz: 7e83cab89dd30200161bb6a13938119847a5d1a78e3843e41bde85cf33dc3f59eaeda086df719087cc9440fe8e9da70065d90c29d6f0428bdda9c298b6c715a5
6
+ metadata.gz: ebdf212a3b50ad6b9bdf50d81053d037bad5dd8135d9b7c4c7bd6eb1391e81f5d74a875d6760878b9e0b986724a300388c8be0ad0d7a17a634c87012149faa6e
7
+ data.tar.gz: 6245c7de65d755ae72cab8adc8c3948d9a17124df1ad172a4f162c2f4da2c6f63647180df0fde696c020deed5cd5e5977d0f21da816c226fb28bd043b1892181
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- martilla (0.2.1)
4
+ martilla (0.2.2)
5
5
  aws-sdk-s3 (~> 1.49)
6
6
  aws-sdk-ses (~> 1.26)
7
7
  memoist (~> 0.16.0)
data/README.md CHANGED
@@ -20,13 +20,13 @@ gem 'martilla'
20
20
 
21
21
  Martilla uses a YAML configuration file that specifies the backup to be performed. The gem works by making three main concepts work together, they're listed out with details that should generally be specified in the config file:
22
22
 
23
- - Database
23
+ - **Database**
24
24
  - What database are we going to backup
25
25
  - How can we connect to the database
26
- - Storage
26
+ - **Storage**
27
27
  - Where is this backup going to be stored
28
28
  - Credentials needed to persist the backup
29
- - Notifiers
29
+ - **Notifiers**
30
30
  - How will you get notified of the backup result
31
31
  - Can be a list of multiple ways to get notified
32
32
 
@@ -53,7 +53,7 @@ From here on you pick the building blocks that work for your specific case:
53
53
 
54
54
  ### Databases
55
55
 
56
- Currently available DB types to choose from are 'postgres' & 'mysql'. They both have the same available options:
56
+ Currently available DB types to choose from are **postgres** & **mysql**. They both have the same available options:
57
57
  - `host`
58
58
  - defaults to localhost
59
59
  - can be set in ENV variable `PG_HOST` or `MYSQL_HOST`
@@ -73,10 +73,10 @@ Currently available DB types to choose from are 'postgres' & 'mysql'. They both
73
73
  ### Storages
74
74
 
75
75
  The available Storages types are 'local', 'S3' & 'SCP'. They each have different available options:
76
- - options for type: 'local'
76
+ - options for type: **local**
77
77
  - `filename`
78
78
  - The location to where the backup will be stored
79
- - options for type: 's3'
79
+ - options for type: **s3**
80
80
  - `filename`
81
81
  - The location to where the backup will be stored within the S3 bucket
82
82
  - `bucket`
@@ -85,7 +85,7 @@ The available Storages types are 'local', 'S3' & 'SCP'. They each have different
85
85
  - can be specified with the usual ENV variables or IAM roles
86
86
  - `secret_access_key`
87
87
  - can be specified with the usual ENV variables or IAM roles
88
- - options for type: 'scp'
88
+ - options for type: **scp**
89
89
  - `filename`
90
90
  - The location to where the backup will be stored within remote server
91
91
  - `host`
@@ -97,21 +97,31 @@ All storage types also accept 'suffix' as a boolean that enables or disables a t
97
97
  ### Notifiers
98
98
 
99
99
  The available Notifiers are 'ses', 'sendmail' & 'smtp'. They each have different available options:
100
- - options for type: 'ses' (email notifier)
100
+ - options for type: **ses** (email notifier)
101
101
  - `aws_region`
102
102
  - `access_key_id`
103
103
  - can be specified with the usual ENV variables or IAM role
104
104
  - `secret_access_key`
105
105
  - can be specified with the usual ENV variables or IAM roles
106
- - options for type: 'sendmail' (email notifier)
106
+ - options for type: **sendmail** (email notifier)
107
107
  - no custom options
108
- - options for type: 'smtp' (email notifier)
108
+ - options for type: **smtp** (email notifier)
109
109
  - `address`
110
110
  - `domain`
111
111
  - `user_name`
112
112
  - `password`
113
-
114
- All of the previous email notifiers also have the following options they all use:
113
+ - options for type: **slack**
114
+ - `slack_webhook_url`
115
+ - required
116
+ - more info [here](https://api.slack.com/messaging/webhooks)
117
+ - `slack_channel`
118
+ - defaults to `#general`
119
+ - the channel to post the backup notifications
120
+ - `slack_username`
121
+ - defaults to `Martilla`
122
+ - the username which backup notifications will be posted with
123
+
124
+ All of the previous **email notifiers** also have the following options that can be customized:
115
125
  - `to`
116
126
  - a list of comma separated emails to be notified
117
127
  - `from`
File without changes
data/lib/martilla/cli.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'byebug'
2
1
  require 'yaml'
3
2
  require 'thor'
4
3
 
@@ -25,5 +24,10 @@ module Martilla
25
24
  file_path = File.join(Dir.pwd, filename)
26
25
  File.write(file_path, Backup.sample_config.to_yaml)
27
26
  end
27
+
28
+ desc "version", "Prints out the current version"
29
+ def version
30
+ puts VERSION
31
+ end
28
32
  end
29
33
  end
@@ -1,3 +1,3 @@
1
1
  module Martilla
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: martilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Valverde
@@ -181,7 +181,8 @@ dependencies:
181
181
  description: ''
182
182
  email:
183
183
  - fdov88@gmail.com
184
- executables: []
184
+ executables:
185
+ - martilla
185
186
  extensions: []
186
187
  extra_rdoc_files: []
187
188
  files:
@@ -196,8 +197,8 @@ files:
196
197
  - README.md
197
198
  - Rakefile
198
199
  - bin/console
199
- - bin/martilla
200
200
  - bin/setup
201
+ - exe/martilla
201
202
  - lib/martilla.rb
202
203
  - lib/martilla/backup.rb
203
204
  - lib/martilla/cli.rb