vagrant-openstack-provider 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/RELEASE.md +1 -1
  4. data/Vagrantfile +2 -2
  5. data/features/provision.feature +4 -4
  6. data/features/{vagrant-openstack.feature → vagrant-openstack-provider.feature} +7 -7
  7. data/lib/{vagrant-openstack.rb → vagrant-openstack-provider.rb} +2 -2
  8. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action.rb +0 -0
  9. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/connect_openstack.rb +0 -0
  10. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/create_server.rb +0 -0
  11. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/delete_server.rb +2 -2
  12. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/is_created.rb +0 -0
  13. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/message_already_created.rb +0 -0
  14. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/message_not_created.rb +0 -0
  15. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/read_ssh_info.rb +0 -0
  16. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/read_state.rb +0 -0
  17. data/lib/{vagrant-openstack → vagrant-openstack-provider}/action/sync_folders.rb +0 -0
  18. data/lib/{vagrant-openstack → vagrant-openstack-provider}/config.rb +0 -0
  19. data/lib/{vagrant-openstack → vagrant-openstack-provider}/errors.rb +0 -0
  20. data/lib/{vagrant-openstack → vagrant-openstack-provider}/openstack_client.rb +7 -0
  21. data/lib/{vagrant-openstack → vagrant-openstack-provider}/plugin.rb +0 -0
  22. data/lib/{vagrant-openstack → vagrant-openstack-provider}/provider.rb +1 -1
  23. data/lib/{vagrant-openstack → vagrant-openstack-provider}/version.rb +1 -1
  24. data/spec/vagrant-openstack/config_spec.rb +2 -2
  25. data/stackrc +0 -1
  26. data/{vagrant-openstack.gemspec → vagrant-openstack-provider.gemspec} +1 -1
  27. metadata +21 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a82b270398ea7be41f726ca43448f7fb1cec2557
4
- data.tar.gz: eb97f8ae679c4d35836fc877593fdd995ee754fe
3
+ metadata.gz: 6f67721a60001e4be971af684ea45cde415f0a3d
4
+ data.tar.gz: afcfda525e9e92210a028de2fd6a0507a8ba8ede
5
5
  SHA512:
6
- metadata.gz: f66475446b6b2dd60dd379b7183a2fa4aae6a5ab7608c2d843ff5fdb52c067b68303a797afcc5e38d7e3cd00909716d54997cd9d7a75877454b0632ffbd2a1dc
7
- data.tar.gz: 9d81858f8f44ee66f32db61cf97ff477663c8d2586c0c4bc216c944b06a2ff849e92d4bdf72b501d6f9b31e6de12f6ec7f3fbc61e894d3a44d1e6370c8e12718
6
+ metadata.gz: cb94233253f0602739ece3d40f9224d10a9f210f00c343ba535fd3e79a7b6322f7215a5651b159d249b395568abeac591c15215d51166b6f1563291d6e828ae2
7
+ data.tar.gz: 97b7d686f7be2b2cc4623ba8250e06c6096d5c218db9b7e2e42d01399b79a21091230e267e1298f7e30e8b7cd100bb2eb33d7ff1601b5933260d4b7072015d49
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.1.2 (April 25, 2014)
2
+
3
+ IMPROVEMENTS:
4
+
5
+ - Rename everything from vagrant-openstack to vagrant-openstack-provider
6
+
1
7
  # 0.1.1 (April 24, 2014)
2
8
 
3
9
  BUG FIXES:
data/RELEASE.md CHANGED
@@ -5,7 +5,7 @@ currently done.
5
5
 
6
6
  ## Prepare the release
7
7
 
8
- * Update the version in "lib/vagrant-openstack/version.rb"
8
+ * Update the version in "lib/vagrant-openstack-provider/version.rb"
9
9
  * Update the version in CHANGELOG.md
10
10
  * Use "rake release". This will make sure to tag that commit and push it RubyGems.
11
11
  * Update the version again in both files to a dev version for working again.
data/Vagrantfile CHANGED
@@ -1,9 +1,9 @@
1
- require 'vagrant-openstack'
1
+ require 'vagrant-openstack-provider'
2
2
 
3
3
  Vagrant.configure("2") do |config|
4
4
 
5
5
  config.vm.box = "dummy-openstack"
6
- config.vm.box_url = "https://github.com/ggiamarchi/vagrant-openstack-plugin/raw/new_version/source/dummy.box"
6
+ config.vm.box_url = "https://github.com/ggiamarchi/vagrant-openstack/raw/master/source/dummy.box"
7
7
 
8
8
  config.ssh.private_key_path = "/home/vagrant/.ssh/id_rsa"
9
9
  config.ssh.shell = "sh"
@@ -1,6 +1,6 @@
1
1
  @announce
2
- @vagrant-openstack
3
- Feature: vagrant-openstack fog tests
2
+ @vagrant-openstack-provider
3
+ Feature: vagrant-openstack-provider fog tests
4
4
 
5
5
  Background:
6
6
  Given I have Openstack credentials available
@@ -10,7 +10,7 @@ Feature: vagrant-openstack fog tests
10
10
  Given a file named "Vagrantfile" with:
11
11
  """
12
12
  Vagrant.configure("2") do |config|
13
- Vagrant.require_plugin "vagrant-openstack"
13
+ Vagrant.require_plugin "vagrant-openstack-provider"
14
14
 
15
15
  config.vm.box = "dummy"
16
16
  config.ssh.private_key_path = "~/.ssh/id_rsa"
@@ -32,4 +32,4 @@ Feature: vagrant-openstack fog tests
32
32
  When I successfully run `bundle exec vagrant up --provider openstack`
33
33
  # I want to capture the ID like I do in tests for other tools, but Vagrant doesn't print it!
34
34
  # And I get the server from "Instance ID:"
35
- Then the server "vagrant-provisioned-server" should be active
35
+ Then the server "vagrant-provisioned-server" should be active
@@ -1,8 +1,8 @@
1
1
  @announce
2
- @vagrant-openstack
3
- Feature: vagrant-openstack fog tests
2
+ @vagrant-openstack-provider
3
+ Feature: vagrant-openstack-provider fog tests
4
4
  As a Fog developer
5
- I want to smoke (or "fog") test vagrant-openstack.
5
+ I want to smoke (or "fog") test vagrant-openstack-provider.
6
6
  So I am confident my upstream changes did not create downstream problems.
7
7
 
8
8
  Background:
@@ -16,8 +16,8 @@ Feature: vagrant-openstack fog tests
16
16
  require File.expand_path '../fog_mock', __FILE__
17
17
 
18
18
  Vagrant.configure("2") do |config|
19
- # dev/test method of loading plugin, normally would be 'vagrant plugin install vagrant-openstack'
20
- Vagrant.require_plugin "vagrant-openstack"
19
+ # dev/test method of loading plugin, normally would be 'vagrant plugin install vagrant-openstack-provider'
20
+ Vagrant.require_plugin "vagrant-openstack-provider"
21
21
 
22
22
  config.vm.box = "dummy"
23
23
  config.ssh.username = "vagrant" if Fog.mock?
@@ -46,8 +46,8 @@ Scenario: Create a single server (openstack_compute_url)
46
46
  require File.expand_path '../fog_mock', __FILE__
47
47
 
48
48
  Vagrant.configure("2") do |config|
49
- # dev/test method of loading plugin, normally would be 'vagrant plugin install vagrant-openstack'
50
- Vagrant.require_plugin "vagrant-openstack"
49
+ # dev/test method of loading plugin, normally would be 'vagrant plugin install vagrant-openstack-provider'
50
+ Vagrant.require_plugin "vagrant-openstack-provider"
51
51
 
52
52
  config.vm.box = "dummy"
53
53
  config.ssh.username = "vagrant" if Fog.mock?
@@ -1,10 +1,10 @@
1
1
  require "pathname"
2
2
 
3
- require "vagrant-openstack/plugin"
3
+ require "vagrant-openstack-provider/plugin"
4
4
 
5
5
  module VagrantPlugins
6
6
  module Openstack
7
- lib_path = Pathname.new(File.expand_path("../vagrant-openstack", __FILE__))
7
+ lib_path = Pathname.new(File.expand_path("../vagrant-openstack-provider", __FILE__))
8
8
  autoload :Errors, lib_path.join("errors")
9
9
 
10
10
  # This initializes the i18n load path so that the plugin-specific
@@ -13,8 +13,8 @@ module VagrantPlugins
13
13
  def call(env)
14
14
  if env[:machine].id
15
15
  env[:ui].info(I18n.t("vagrant_openstack.deleting_server"))
16
- server = env[:openstack_compute].servers.get(env[:machine].id)
17
- server.destroy
16
+ client = env[:openstack_client]
17
+ client.delete_server(env, env[:machine].id)
18
18
  env[:machine].id = nil
19
19
  end
20
20
 
@@ -59,6 +59,13 @@ module VagrantPlugins
59
59
  return JSON.parse(server)['server']['id']
60
60
  end
61
61
 
62
+ def delete_server(env, server_id)
63
+ config = env[:machine].provider_config
64
+ server = RestClient.delete(config.openstack_compute_url + "/servers/" + server_id,
65
+ "X-Auth-Token" => @token,
66
+ :accept => :json)
67
+ end
68
+
62
69
  def get_server_details(env, server_id)
63
70
  config = env[:machine].provider_config
64
71
  server_details = RestClient.get(config.openstack_compute_url + "/servers/" + server_id,
@@ -1,6 +1,6 @@
1
1
  require "vagrant"
2
2
 
3
- require "vagrant-openstack/action"
3
+ require "vagrant-openstack-provider/action"
4
4
 
5
5
  module VagrantPlugins
6
6
  module Openstack
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Openstack
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ if ENV['COVERAGE'] != 'false'
8
8
  SimpleCov.start
9
9
  end
10
10
 
11
- require "vagrant-openstack/config"
11
+ require "vagrant-openstack-provider/config"
12
12
  require 'fog'
13
13
 
14
14
  describe VagrantPlugins::Openstack::Config do
@@ -59,7 +59,7 @@ describe VagrantPlugins::Openstack::Config do
59
59
  end
60
60
  end
61
61
 
62
- it "should not default rsync_includes if overridden" do
62
+ it "should not default rsync_includes if overridden" do
63
63
  inc = "core"
64
64
  subject.send(:rsync_include, inc)
65
65
  subject.finalize!
data/stackrc CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  #!/bin/bash
3
2
 
4
3
  # With the addition of Keystone, to use an openstack cloud you should
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'vagrant-openstack/version'
4
+ require 'vagrant-openstack-provider/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "vagrant-openstack-provider"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-openstack-provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Giamarchi
@@ -77,31 +77,31 @@ files:
77
77
  - features/steps/server_steps.rb
78
78
  - features/support/env.rb
79
79
  - features/support/fog_mock.rb
80
- - features/vagrant-openstack.feature
80
+ - features/vagrant-openstack-provider.feature
81
81
  - gemfiles/latest_stable.gemfile
82
82
  - gemfiles/oldest_current.gemfile
83
83
  - gemfiles/previous_release.gemfile
84
- - lib/vagrant-openstack.rb
85
- - lib/vagrant-openstack/action.rb
86
- - lib/vagrant-openstack/action/connect_openstack.rb
87
- - lib/vagrant-openstack/action/create_server.rb
88
- - lib/vagrant-openstack/action/delete_server.rb
89
- - lib/vagrant-openstack/action/is_created.rb
90
- - lib/vagrant-openstack/action/message_already_created.rb
91
- - lib/vagrant-openstack/action/message_not_created.rb
92
- - lib/vagrant-openstack/action/read_ssh_info.rb
93
- - lib/vagrant-openstack/action/read_state.rb
94
- - lib/vagrant-openstack/action/sync_folders.rb
95
- - lib/vagrant-openstack/config.rb
96
- - lib/vagrant-openstack/errors.rb
97
- - lib/vagrant-openstack/openstack_client.rb
98
- - lib/vagrant-openstack/plugin.rb
99
- - lib/vagrant-openstack/provider.rb
100
- - lib/vagrant-openstack/version.rb
84
+ - lib/vagrant-openstack-provider.rb
85
+ - lib/vagrant-openstack-provider/action.rb
86
+ - lib/vagrant-openstack-provider/action/connect_openstack.rb
87
+ - lib/vagrant-openstack-provider/action/create_server.rb
88
+ - lib/vagrant-openstack-provider/action/delete_server.rb
89
+ - lib/vagrant-openstack-provider/action/is_created.rb
90
+ - lib/vagrant-openstack-provider/action/message_already_created.rb
91
+ - lib/vagrant-openstack-provider/action/message_not_created.rb
92
+ - lib/vagrant-openstack-provider/action/read_ssh_info.rb
93
+ - lib/vagrant-openstack-provider/action/read_state.rb
94
+ - lib/vagrant-openstack-provider/action/sync_folders.rb
95
+ - lib/vagrant-openstack-provider/config.rb
96
+ - lib/vagrant-openstack-provider/errors.rb
97
+ - lib/vagrant-openstack-provider/openstack_client.rb
98
+ - lib/vagrant-openstack-provider/plugin.rb
99
+ - lib/vagrant-openstack-provider/provider.rb
100
+ - lib/vagrant-openstack-provider/version.rb
101
101
  - locales/en.yml
102
102
  - spec/vagrant-openstack/config_spec.rb
103
103
  - stackrc
104
- - vagrant-openstack.gemspec
104
+ - vagrant-openstack-provider.gemspec
105
105
  homepage: https://github.com/ggiamarchi/vagrant-openstack
106
106
  licenses: []
107
107
  metadata: {}
@@ -131,5 +131,5 @@ test_files:
131
131
  - features/steps/server_steps.rb
132
132
  - features/support/env.rb
133
133
  - features/support/fog_mock.rb
134
- - features/vagrant-openstack.feature
134
+ - features/vagrant-openstack-provider.feature
135
135
  - spec/vagrant-openstack/config_spec.rb