starting rocky development patch

Change-Id: Ia24eef700ab6c7fe359a17070981dc93e0300a18
This commit is contained in:
Samuel Cassiba 2018-08-03 06:19:40 -07:00
parent 7dffaaa416
commit 341c5b8098
6 changed files with 8 additions and 47 deletions

View File

@ -1,55 +1,13 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-05-28 09:02:57 -0700 using RuboCop version 0.49.1.
# on 2018-08-03 05:25:45 -0700 using RuboCop version 0.55.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 20
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
Max: 196
# Offense count: 28
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 100
# Offense count: 7
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'libraries/openstack_base.rb'
- 'libraries/openstack_domain.rb'
- 'libraries/openstack_endpoint.rb'
- 'libraries/openstack_project.rb'
- 'libraries/openstack_role.rb'
- 'libraries/openstack_service.rb'
- 'libraries/openstack_user.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'Rakefile'
- 'metadata.rb'
- 'spec/cookbooks/openstackclient_test/recipes/endpoint.rb'
- 'spec/endpoint_spec.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral:
Exclude:
- 'spec/cookbooks/openstackclient_test/recipes/domain.rb'
- 'spec/cookbooks/openstackclient_test/recipes/endpoint.rb'
- 'spec/cookbooks/openstackclient_test/recipes/project.rb'
- 'spec/cookbooks/openstackclient_test/recipes/role.rb'
- 'spec/cookbooks/openstackclient_test/recipes/service.rb'
- 'spec/cookbooks/openstackclient_test/recipes/user.rb'
- 'spec/spec_helper.rb'

3
.zuul.yaml Normal file
View File

@ -0,0 +1,3 @@
- project:
templates:
- openstack-chef-repo-jobs

View File

@ -15,7 +15,7 @@
# limitations under the License.
module OpenstackclientCookbook
class OpenstackBase < Chef::Resource
class OpenstackBase < Chef::Resource::LWRPBase
require 'fog/openstack'
def connection
@connection_cache ||= Fog::Identity::OpenStack.new(connection_params)

View File

@ -55,7 +55,7 @@ module OpenstackclientCookbook
if endpoint
new_resource.connection.endpoints.destroy(endpoint.id)
else
log "#{interface}_endpoint for \"#{service_name}\" doesn't exist"
log "#{new_resource.interface}_endpoint for \"#{new_resource.service_name}\" doesn't exist"
end
end
end

View File

@ -38,7 +38,7 @@ module OpenstackclientCookbook
if project
project.destroy
else
log "Project with name: \"#{project_name}\" doesn't exist"
log "Project with name: \"#{new_resource.project_name}\" doesn't exist"
end
end
end

View File

@ -6,7 +6,7 @@ description 'Installs the fog-openstack gem and offers LWRPs to use it'
issues_url 'https://launchpad.net/openstack-chef'
source_url 'https://git.openstack.org/openstack/cookbook-openstack-client'
chef_version '>= 12.5' if respond_to?(:chef_version)
version '17.0.0'
version '18.0.0'
%w(ubuntu redhat centos).each do |os|
supports os