Skip to content

tcnksm/vagrant-pushover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Pushover

Gem Version

This is a Vagrant plugin that add pushover notification function to your Vagrant, allowing Vagrant to push noticate your iOS/Androind. If your provisioning takes too much time, use this plugin and go out to have good ☕, you can know when you should go back your seat.

Requirement

Installation

Install it as a Vagrant plugin.

$ vagrant plugin install vagrant-pushover

Usage

Add configuration in your Vagrantfile. You must set token and user.

Vagrant.configure("2") do |config|
    config.pushover.set do |p|
        p.token     = "YOUR APP TOKEN"
        p.user      = "YOUR KEY"
    end
end

Nofication is not sent without this pushover configration. You can set other parameters here, check pushover API documentation here.

If you want to share your Vagrantfile and you don't want to include your token and user key, generate pushover configuration file.

$ vagrant pushover-init

By above command .vagrant/pushover.rb will be generated and you can add your token and user key here.

# .vagrant/pushover.rb
module PushoverConfig
  TOKEN  = "YOUR APP TOKEN"
  USER   = "YOUR KEY"
end

To read this pushover configuration file add pushover.read_key in your Vagrantfile.

Vagrant.configure("2") do |config|
    if Vagrant.has_plugin?("vagrant-pushover")
        config.pushover.read_key
    end
end

When notification is sent ?

Notification is sent after below commands.

  • vagrant up
    • When machine is not yet provisioned.
    • Current machine state is not running.
  • vagrant up --provision
  • vagrant reload --provision
  • vagrant provision

Contributing

  1. Fork it ( http://github.com//vagrant-pushover/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

tcnksm

About

Add pushover notification to your vagrant

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages