vagrant-destroy-provisioner 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b0ddfe3d7f244d5cd7a6928817795383fe56b512
4
+ data.tar.gz: 2ecf5064800caa9d034ec01e04403bff9aaace5c
5
+ SHA512:
6
+ metadata.gz: 82516d726e05e3dc7639d2f381209a0b978a001992b366477e345826fa3a28dd4f9ae2e03970f8d1cab51fc5f302e1dc8fe6228f57c0cab5ce99e24924c4e369
7
+ data.tar.gz: 82e97382ae5fd5abb19dd499058aace6f24764b8525726fb944c57e0887a6481d60963335e9720bdecf4b9749436396a2dd88376d38963846f6b93fac7a7f095
@@ -0,0 +1,16 @@
1
+ # OS-specific
2
+ .DS_Store
3
+
4
+ # Bundler/Rubygems
5
+ *.gem
6
+ .bundle
7
+ pkg/*
8
+ tags
9
+ Gemfile.lock
10
+
11
+ # Vagrant
12
+ .vagrant
13
+ Vagrantfile
14
+
15
+ *~
16
+
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in vagrant-destroy-provisioner.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Masahiro Nagano
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,19 @@
1
+ # Vagrant::Destroy::Provisioner
2
+
3
+ vagrant-destroy-provisioner allows a VM to be destroyed as a provisioning step.
4
+
5
+ ## Installation
6
+
7
+ $ vagrant plugin install vagrant-destroy-provisioner
8
+
9
+ ## Usage
10
+
11
+ config.vm.provision :destroy
12
+
13
+ ## Contributing
14
+
15
+ 1. Fork it ( https://github.com/[my-github-username]/vagrant-destroy-provisioner/fork )
16
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
17
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
18
+ 4. Push to the branch (`git push origin my-new-feature`)
19
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,40 @@
1
+
2
+ module VagrantPlugins
3
+ module Destroy
4
+ class Plugin < Vagrant.plugin("2")
5
+
6
+ name "Destroy"
7
+ description <<-DESC
8
+ vagrant-destroy-provisioner allows a VM to be destroyed as a provisioning step.
9
+ DESC
10
+
11
+ provisioner "destroy" do
12
+ class Provisioner < Vagrant.plugin("2", :provisioner)
13
+
14
+ def initialize(machine, config)
15
+ super
16
+ end
17
+
18
+ def configure(root_config)
19
+ end
20
+
21
+ def provision
22
+ options = {}
23
+ options[:force_confirm_destroy] = true
24
+ @machine.action(:destroy, options)
25
+ begin
26
+ sleep 2
27
+ end while @machine.communicate.ready?
28
+ end
29
+
30
+ def cleanup
31
+ end
32
+
33
+ end
34
+ Provisioner
35
+
36
+ end
37
+ end
38
+ end
39
+ end
40
+
@@ -0,0 +1,7 @@
1
+ module Vagrant
2
+ module Destroy
3
+ module Provisioner
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'vagrant-destroy-provisioner/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "vagrant-destroy-provisioner"
8
+ spec.version = Vagrant::Destroy::Provisioner::VERSION
9
+ spec.authors = ["Masahiro Nagano"]
10
+ spec.email = ["kazeburo@gmail.com"]
11
+ spec.summary = %q{vagrant-destroy-provisioner allows a VM to be destroyed as a provisioning step}
12
+ spec.description = %q{vagrant-destroy-provisioner allows a VM to be destroyed as a provisioning step}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-destroy-provisioner
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Masahiro Nagano
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: vagrant-destroy-provisioner allows a VM to be destroyed as a provisioning
42
+ step
43
+ email:
44
+ - kazeburo@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - lib/vagrant-destroy-provisioner.rb
55
+ - lib/vagrant-destroy-provisioner/version.rb
56
+ - vagrant-destroy-provisioner.gemspec
57
+ homepage: ''
58
+ licenses:
59
+ - MIT
60
+ metadata: {}
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 2.2.0
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: vagrant-destroy-provisioner allows a VM to be destroyed as a provisioning
81
+ step
82
+ test_files: []