vagrant-pushover 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: e26b332c0e4fd5d053bec67f8905f3da9b02a761
4
- data.tar.gz: 6b6c855b403adad0cf35b37c2cb1adac9ec5d98a
3
+ metadata.gz: 48ec1156ea8d6b6951b6dbc487b95028dc1e9e63
4
+ data.tar.gz: c076d27a8f8aa766b1f6b0dd97e90ee6c771305f
5
5
  SHA512:
6
- metadata.gz: cdc860679f3fe731686ed47546d372f69a0cd14acc69367f154b521e9088973eacf76d2cacb58573df06966b3fd762691e707a14ea2a9ba5919702421ca98c7c
7
- data.tar.gz: f75025aed7674cfa98cc49e4eaa8ebf0fc66dd0cfee1bd7571260dcbeb4936c7dda13c9c4fd82f91a176ef1a95cb05e974249b27a9a2150a0fcfc77adc2b37ff
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
 
@@ -4,6 +4,10 @@ module VagrantPlugins
4
4
  module Pushover
5
5
  class Command < Vagrant.plugin("2", :command)
6
6
 
7
+ def self.synopsis
8
+ "generates pushover configration file"
9
+ end
10
+
7
11
  def execute
8
12
  config_file = ::VagrantPlugins::Pushover.config_file
9
13
  if config_file.exist?
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Pushover
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-pushover
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tcnksm