From a3c75e4973d79bc1af64b18f95748760b03876be Mon Sep 17 00:00:00 2001 From: Alex Dergachev Date: Tue, 24 Sep 2013 15:04:47 -0400 Subject: [PATCH 1/5] Update DEVNOTES.md --- DEVNOTES.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DEVNOTES.md b/DEVNOTES.md index 660c2f1..edd5ced 100644 --- a/DEVNOTES.md +++ b/DEVNOTES.md @@ -50,7 +50,7 @@ vagrant plugin uninstall vagrant-vbox-snapshot vagrant plugin install ~/code/vagrant-vbox-snapshot/vagrant-vbox-snapshot-VERSION.gem # replace VERSION with 0.0.3 vagrant plugin list | grep snapshot # ensure that correct version is installed vagrant snapshot list -h # quick sanity check -vagrant plugin uninstall # cleanup +vagrant plugin uninstall vagrant-vbox-snapshot # cleanup ``` Now commit and tag: @@ -67,10 +67,11 @@ git tag vN.N.N # eg v0.0.3 git push --tags ``` -# test installing from rubygems +Test installing from rubygems + +``` cd ~/code/screengif vagrant plugin install vagrant-vbox-snapshot -vagrant plugin list ``` From 4cc0eb4b23dcb9b53543748bf55c11a706f4a14f Mon Sep 17 00:00:00 2001 From: Brandon Zylstra Date: Thu, 9 Jan 2014 13:20:47 -0500 Subject: [PATCH 2/5] sahara now supports 1.1 The original repo is now more up-to-date than the fork that added 1.1 support. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 110ee89..c06b914 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This plugin is primarily a port of vagrant-snap to Vagrant 1.1. * [vagrant-snap](https://github.com/t9md/vagrant-snap) - fork with Vagrant 1.0.4-1.0.7 compatibility: https://gist.github.com/tombh/5142237 [source](https://github.com/mitchellh/vagrant/issues/143#issuecomment-14781762) * [sahara](https://github.com/jedi4ever/sahara) - - fork exists with 1.1 functionality: https://github.com/ryuzee/sahara + - supports 1.1 ## Development From a2986e2a946def984e90e79ed920fa0403615441 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Thu, 27 Mar 2014 09:33:30 +0100 Subject: [PATCH 3/5] Updated README.md to reflect the mandatory nature of the SNAPSHOT_NAME argument. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c06b914..83cf37c 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ Ensure you have Vagrant 1.1+ installed, then run: The following commands are added by this plugin: - vagrant snapshot take [vm-name] [NAME] # take snapshot, labeled by NAME + vagrant snapshot take [vm-name] # take snapshot, labeled by NAME vagrant snapshot list [vm-name] # list snapshots vagrant snapshot back [vm-name] # restore last taken snapshot - vagrant snapshot delete [vm-name] [NAME] # delete specified snapshot - vagrant snapshot go [vm-name] [NAME] # restore specified snapshot + vagrant snapshot delete [vm-name] # delete specified snapshot + vagrant snapshot go [vm-name] # restore specified snapshot ## Caveats From 77fb0fd7477510345a8d2324568b30f18ca81aa1 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 9 Apr 2014 16:43:04 +0200 Subject: [PATCH 4/5] added method synopsis to Root class When running vagrant without commands there is a listing of all available commands with a short description. Because of the missing method synopsis in class Root the description is missing at the moment for the vbox-snapshot plugin. --- lib/vagrant-vbox-snapshot/commands/root.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vagrant-vbox-snapshot/commands/root.rb b/lib/vagrant-vbox-snapshot/commands/root.rb index 577132c..cc907dd 100644 --- a/lib/vagrant-vbox-snapshot/commands/root.rb +++ b/lib/vagrant-vbox-snapshot/commands/root.rb @@ -2,6 +2,10 @@ module VagrantPlugins module VBoxSnapshot module Command class Root < Vagrant.plugin(2, :command) + def self.synopsis + "manages snapshots of the machine: taking, restoring, deleting, etc." + end + def initialize(argv, env) super From 561ed8df4cddc2d771c93cc39e2122710cdf992d Mon Sep 17 00:00:00 2001 From: Alex Dergachev Date: Sat, 7 Jun 2014 16:35:39 -0400 Subject: [PATCH 5/5] Release v0.0.5 --- CHANGELOG.md | 6 ++++++ DEVNOTES.md | 13 +++++++++++-- Gemfile | 6 +++++- lib/vagrant-vbox-snapshot/version.rb | 2 +- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5977c3..517a7b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [0.0.5](https://github.com/dergachev/vagrant-vbox-snapshot/compare/v0.0.4...v0.0.5) (June 7, 2014) + +IMPROVEMENTS: + + - Add command synopsys [#23](https://github.com/dergachev/vagrant-vbox-snapshot/issues/23) + ## [0.0.4](https://github.com/dergachev/vagrant-vbox-snapshot/compare/v0.0.3...v0.0.4) (Sep 23, 2013) BACKWARDS INCOMPATIBILITIES: diff --git a/DEVNOTES.md b/DEVNOTES.md index edd5ced..42c8e8d 100644 --- a/DEVNOTES.md +++ b/DEVNOTES.md @@ -25,10 +25,19 @@ vagrant snapshot take TEST1 # and so on... ``` git clone https://github.com/dergachev/vagrant-vbox-snapshot.git cd vagrant-vbox-snapshot + +# installs vagrant gem for local development +NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install + # consider branching if you aren't sure about merging it (not the case here, of course!) -# git checkout dubious-pull-request +# git checkout -b dubious-pull-request git pull https://github.com/fgrehm/vagrant-vbox-snapshot multi-vm-environments-support -# test, fix stuff, etc + +# test, fix stuff, etc (inside the locally installed bundle) +bundle exec vagrant up +bundle exec vagrant snapshot go + +# push (merge into master if necessary) git push -u origin master ``` diff --git a/Gemfile b/Gemfile index e102803..879069c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,10 @@ source 'https://rubygems.org' # Specify your gem's dependencies in vagrant-snap.gemspec -gemspec +# gemspec gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git" + +group :plugins do + gem "vagrant-vbox-snapshot", path: "." +end diff --git a/lib/vagrant-vbox-snapshot/version.rb b/lib/vagrant-vbox-snapshot/version.rb index ef186a8..96ba8c6 100644 --- a/lib/vagrant-vbox-snapshot/version.rb +++ b/lib/vagrant-vbox-snapshot/version.rb @@ -1,5 +1,5 @@ module VagrantPlugins module VBoxSnapshot - VERSION = "0.0.4" + VERSION = "0.0.5" end end