vagrant-pushover 1.1.0 → 1.1.1
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/README.md +27 -2
- data/lib/vagrant-pushover/command.rb +4 -0
- data/lib/vagrant-pushover/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48ec1156ea8d6b6951b6dbc487b95028dc1e9e63
|
4
|
+
data.tar.gz: c076d27a8f8aa766b1f6b0dd97e90ee6c771305f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c47196f840a222e7ddd757d8daeb4d23124c4ce96cc564d0478e0b3bef55eed3b0de13e6f3a008ab877505b30e0ccfb7557a250aeeadac9ce52c3579fea0476b
|
7
|
+
data.tar.gz: c808a422aed7b7a0cf39d1889c1c65850dfec56428345c36b18636aada439b2e69962cd4a5de9e8a38a7e9b1d5e3248447d0b82b4f2610103591ab513c31989a
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ $ vagrant plugin install vagrant-pushover
|
|
26
26
|
|
27
27
|
## Usage
|
28
28
|
|
29
|
-
Add configuration in your Vagrantfile. You must set `token` and `user`.
|
29
|
+
Add configuration in your Vagrantfile. You must set `token` and `user`.
|
30
30
|
|
31
31
|
```ruby
|
32
32
|
Vagrant.configure("2") do |config|
|
@@ -36,8 +36,33 @@ Vagrant.configure("2") do |config|
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
```
|
39
|
+
Nofication is not sent without this pushover configration. You can set other parameters here, check pushover API documentation [here](https://pushover.net/api).
|
40
|
+
|
41
|
+
|
42
|
+
If you want to share your `Vagrantfile` and you don't want to include your `token` and `user` key, generate pushover configuration file.
|
43
|
+
|
44
|
+
```bash
|
45
|
+
$ vagrant pushover-init
|
46
|
+
```
|
47
|
+
|
48
|
+
By above command `.vagrant/pushover.rb` will be generated and you can add your `token` and `user` key here.
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
# .vagrant/pushover.rb
|
52
|
+
module PushoverConfig
|
53
|
+
TOKEN = "YOUR APP TOKEN"
|
54
|
+
USER = "YOUR KEY"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
To read this pushover configuration file add `pushover.read_key` in your Vagrantfile.
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
Vagrant.configure("2") do |config|
|
62
|
+
config.pushover.read_key
|
63
|
+
end
|
64
|
+
```
|
39
65
|
|
40
|
-
Nofication is not send unless add this configuration. You can set other parameters here, check pushover API documentation [here](https://pushover.net/api).
|
41
66
|
|
42
67
|
## When notification is sent ?
|
43
68
|
|