Module: VagrantPlugins::Pushover

Defined in:
lib/vagrant-pushover.rb,
lib/vagrant-pushover/action.rb,
lib/vagrant-pushover/config.rb,
lib/vagrant-pushover/plugin.rb,
lib/vagrant-pushover/command.rb,
lib/vagrant-pushover/version.rb

Defined Under Namespace

Classes: Action, Command, Config, Plugin

Constant Summary collapse

VERSION =
"1.1.1"

Class Method Summary collapse

Class Method Details

.called_rootObject



12
13
14
# File 'lib/vagrant-pushover.rb', line 12

def self.called_root
  Pathname.pwd
end

.config_fileObject



8
9
10
# File 'lib/vagrant-pushover.rb', line 8

def self.config_file
  called_root.join(".vagrant/pushover.rb")
end

.write_default_keyObject



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/vagrant-pushover.rb', line 16

def self.write_default_key
  content = <<-EOF
module PushoverConfig
  TOKEN = "YOUR APP TOKEN"
  USER  = "YOUR USER KEY"
end
EOF
  File.open(config_file,'w') do |f|
    f.puts content
  end
end