knife-openstack 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bccced8e7a4e0fb7c2f339e9f4fc82fc2a22447f
4
- data.tar.gz: 1311204c17a6a5d0fd198a1be33df0b5f0bbd8b8
3
+ metadata.gz: 3a29b5e000e62f43f3372bd4fb9d498e3bbc92c2
4
+ data.tar.gz: 623f77f926e18fbb88577983458e7188e7ac09ba
5
5
  SHA512:
6
- metadata.gz: 552efcd4d6ed050e5a479e5ac2e3927dfba6ff60b17379d1e78a20e5b90bd04dda285b0707f04b8870e5f3d47e4fe464c74c09e2885481447c79522ba357cdbb
7
- data.tar.gz: 626bf0dcc77ec5cd389dae99d2d9f6df910f180a086b237007007e791c2f0ed5613e585d3019b9690e0ab90b765635af5c02fa3e0fc66375e0380360448aa678
6
+ metadata.gz: 6a2a31b7e81b7c15d32606c83505a6e8e4d87822ffda0673aa4e974fda09976b66649172b534bf710cf01a6a5b3f6beea3dc2b80e566f5198bc9a6ce0ee6032e
7
+ data.tar.gz: 554bd1d53c99afc1d489c7fdd82c4915ae40c5843dcc5ad20bb2136bdebf4bbed24f3c965a69869a915d9e9c1cfa80a30c31f35c2d084d7f351d56f6bbadd455
@@ -1,9 +1,17 @@
1
1
  language: ruby
2
2
  cache: bundler
3
+ dist: trusty
3
4
  sudo: false
4
5
  rvm:
5
- - 2.2.5
6
- - 2.3.1
6
+ - 2.2.7
7
+ - 2.3.4
8
+ - 2.4.1
9
+ - ruby-head
10
+
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: ruby-head
14
+
7
15
  branches:
8
16
  only:
9
17
  - master
@@ -1,7 +1,13 @@
1
1
  # Change Log
2
2
 
3
- ## [v2.0.1](https://github.com/chef/knife-openstack/tree/v2.0.1)
3
+ ## [2.1.0](https://github.com/chef/knife-openstack/tree/2.1.0) (2017-08-21)
4
+ [Full Changelog](https://github.com/chef/knife-openstack/compare/v2.0.1...2.1.0)
4
5
 
6
+ **Merged pull requests:**
7
+
8
+ - Test on the latest Ruby releases in Travis [\#202](https://github.com/chef/knife-openstack/pull/202) ([tas50](https://github.com/tas50))
9
+
10
+ ## [v2.0.1](https://github.com/chef/knife-openstack/tree/v2.0.1) (2017-03-21)
5
11
  [Full Changelog](https://github.com/chef/knife-openstack/compare/v2.0.0...v2.0.1)
6
12
 
7
13
  **Merged pull requests:**
@@ -328,8 +334,6 @@
328
334
  [Full Changelog](https://github.com/chef/knife-openstack/compare/v0.5.0...v0.5.1)
329
335
 
330
336
  ## [v0.5.0](https://github.com/chef/knife-openstack/tree/v0.5.0) (2011-03-30)
331
- [Full Changelog](https://github.com/chef/knife-openstack/compare/0449e574d540d0d7fbc96ffebad68ec1ae215423...v0.5.0)
332
-
333
337
 
334
338
 
335
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
339
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile CHANGED
@@ -3,19 +3,3 @@ source "https://rubygems.org"
3
3
 
4
4
  # Specify your gem's dependencies in knife-openstack.gemspec
5
5
  gemspec
6
-
7
- group :development do
8
- gem "guard-rspec"
9
- gem "mixlib-shellout"
10
- gem "rake", "~> 11.0"
11
- gem "rspec", "~> 3.0"
12
- gem "chefstyle"
13
- gem "rspec-expectations"
14
- gem "rspec-mocks"
15
- gem "rspec_junit_formatter"
16
- end
17
-
18
- # our use of the fork can go away if they merge https://github.com/skywinder/github-changelog-generator/pull/453
19
- group(:changelog) do
20
- gem "github_changelog_generator", git: "https://github.com/tduffield/github-changelog-generator", branch: "adjust-tag-section-mapping"
21
- end
data/Rakefile CHANGED
@@ -17,11 +17,13 @@ RSpec::Core::RakeTask.new(:spec)
17
17
 
18
18
  task default: [:rubocop, :spec]
19
19
 
20
- GitHubChangelogGenerator::RakeTask.new :changelog do |config|
21
- config.future_release = Knife::OpenStack::VERSION
22
- config.max_issues = 0
23
- config.add_issues_wo_labels = false
24
- config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
25
- config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
26
- config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion,Tech Cleanup".split(",")
20
+ begin
21
+ require 'github_changelog_generator/task'
22
+
23
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
24
+ config.future_release = Knife::OpenStack::VERSION
25
+ config.issues = true
26
+ end
27
+ rescue LoadError
28
+ puts 'github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs'
27
29
  end
@@ -27,4 +27,15 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency "fog", "~> 1.23"
28
28
  s.add_dependency "chef", ">= 12"
29
29
  s.add_dependency "knife-cloud", "~> 1.2.0"
30
+
31
+ s.add_development_dependency "chefstyle"
32
+ s.add_development_dependency "github_changelog_generator"
33
+ s.add_development_dependency "guard-rspec"
34
+ s.add_development_dependency "mixlib-shellout"
35
+ s.add_development_dependency "rake"
36
+ s.add_development_dependency "rspec", "~> 3.0"
37
+ s.add_development_dependency "rspec-expectations"
38
+ s.add_development_dependency "rspec-mocks"
39
+ s.add_development_dependency "rspec_junit_formatter"
40
+
30
41
  end
@@ -30,10 +30,9 @@ class Chef
30
30
  exit 1
31
31
  end
32
32
 
33
- instance_id = locate_config_value(:instance_id)
34
33
  response = @service.associate_address(instance_id, floating_ip)
35
34
  if response && response.status == 202
36
- ui.info "Floating IP #{floating_ip} associated with Instance #{instance_id}"
35
+ ui.info "Floating IP #{floating_ip} associated with Instance #{locate_config_value(:instance_id)}"
37
36
  end
38
37
  end
39
38
  end
@@ -29,10 +29,10 @@ class Chef
29
29
  ui.error "Please provide Floating IP to disassociate."
30
30
  exit 1
31
31
  end
32
- instance_id = locate_config_value(:instance_id)
33
- response = @service.disassociate_address(instance_id, floating_ip)
32
+
34
33
  if response && response.status == 202
35
- ui.info "Floating IP #{floating_ip} disassociated with Instance #{instance_id}"
34
+ response = @service.disassociate_address(instance_id, floating_ip)
35
+ ui.info "Floating IP #{floating_ip} disassociated with Instance #{locate_config_value(:instance_id)}"
36
36
  end
37
37
  end
38
38
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  module Knife
3
3
  module OpenStack
4
- VERSION = "2.0.1"
4
+ VERSION = "2.1.0"
5
5
  MAJOR, MINOR, TINY = VERSION.split(".")
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JJ Asghar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-21 00:00:00.000000000 Z
11
+ date: 2017-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
@@ -52,6 +52,132 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.2.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: chefstyle
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: github_changelog_generator
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: mixlib-shellout
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec-expectations
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec-mocks
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rspec_junit_formatter
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
55
181
  description: A Chef knife plugin for OpenStack clouds.
56
182
  email:
57
183
  - jj@chef.io