Style and lint fixes, add helpers

- add delivery and zuul configs
- prepare cookbook for inclusion in OpenStack
This commit is contained in:
Samuel Cassiba 2018-05-28 09:05:53 -07:00
parent 6391057a3c
commit bfd132d5dc
28 changed files with 67 additions and 28 deletions

1
.delivery/project.toml Normal file
View File

@ -0,0 +1 @@
remote_file = "https://raw.githubusercontent.com/chef-cookbooks/community_cookbook_tools/master/delivery/project.toml"

View File

@ -1,11 +1,22 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-08-29 21:29:34 +0200 using RuboCop version 0.39.0.
# on 2018-05-28 09:02:57 -0700 using RuboCop version 0.49.1.
# 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:
@ -18,3 +29,27 @@ Style/Documentation:
- '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

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#
@ -16,7 +16,7 @@
task default: ['test']
task test: [:lint, :style, :unit]
task test: %i(lint style unit)
desc 'Run FoodCritic (lint) tests'
task :lint do

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,5 +1,5 @@
name 'openstack-client'
maintainer 'openstack-chef'
name 'openstackclient'
maintainer 'OpenStack'
maintainer_email 'openstack-dev@lists.openstack.org'
license 'Apache-2.0'
description 'Installs the fog-openstack gem and offers LWRPs to use it'

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#

View File

@ -1,4 +1,4 @@
# encoding: UTF-8
#
# Copyright 2016 cloudbau GmbH
#