Initial Liberty Changes
Metadata changes - Updated maintainer email - Updated the version rubocop updates Change-Id: I12a98b58afbda429720e0b95ae64268f148dbaa6
This commit is contained in:
parent
8cfa80e9cb
commit
de16ad45f8
|
@ -1,3 +1,4 @@
|
||||||
|
inherit_from: .rubocop_todo.yml
|
||||||
AllCops:
|
AllCops:
|
||||||
Include:
|
Include:
|
||||||
- metadata.rb
|
- metadata.rb
|
||||||
|
@ -28,4 +29,4 @@ WordArray:
|
||||||
MinSize: 3
|
MinSize: 3
|
||||||
|
|
||||||
MethodLength:
|
MethodLength:
|
||||||
Max: 15
|
Max: 15
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# This configuration was generated by `rubocop --auto-gen-config`
|
||||||
|
# on 2015-08-31 10:13:18 -0500 using RuboCop version 0.32.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: 1
|
||||||
|
Metrics/AbcSize:
|
||||||
|
Max: 22
|
|
@ -22,14 +22,14 @@ module Openstack
|
||||||
module Nova
|
module Nova
|
||||||
include Openstack::Client
|
include Openstack::Client
|
||||||
|
|
||||||
def nova # rubocop:disable all
|
def nova
|
||||||
@nova ||= Fog::Compute.new(provider: 'openstack',
|
@nova ||= Fog::Compute.new(provider: 'openstack',
|
||||||
openstack_username: new_resource.openstack_username,
|
openstack_username: new_resource.openstack_username,
|
||||||
openstack_api_key: new_resource.openstack_password,
|
openstack_api_key: new_resource.openstack_password,
|
||||||
openstack_auth_url: new_resource.openstack_auth_url,
|
openstack_auth_url: new_resource.openstack_auth_url,
|
||||||
openstack_tenant: new_resource.openstack_tenant,
|
openstack_tenant: new_resource.openstack_tenant,
|
||||||
openstack_region: new_resource.openstack_region
|
openstack_region: new_resource.openstack_region
|
||||||
) # rubocop:disable all
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,7 +22,7 @@ module Openstack
|
||||||
module Swift
|
module Swift
|
||||||
include Openstack::Client
|
include Openstack::Client
|
||||||
|
|
||||||
def swift # rubocop:disable all
|
def swift
|
||||||
@swift ||= Fog::Storage.new(provider: 'openstack',
|
@swift ||= Fog::Storage.new(provider: 'openstack',
|
||||||
openstack_username: new_resource.openstack_username,
|
openstack_username: new_resource.openstack_username,
|
||||||
openstack_api_key: new_resource.openstack_password,
|
openstack_api_key: new_resource.openstack_password,
|
||||||
|
@ -34,7 +34,7 @@ module Openstack
|
||||||
openstack_service_name: new_resource.openstack_service_name,
|
openstack_service_name: new_resource.openstack_service_name,
|
||||||
openstack_service_type: new_resource.openstack_service_type,
|
openstack_service_type: new_resource.openstack_service_type,
|
||||||
openstack_endpoint_type: new_resource.openstack_endpoint_type
|
openstack_endpoint_type: new_resource.openstack_endpoint_type
|
||||||
) # rubocop:disable all
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Encoding: utf-8
|
# Encoding: utf-8
|
||||||
name 'openstack_client'
|
name 'openstack_client'
|
||||||
maintainer 'openstack-chef'
|
maintainer 'openstack-chef'
|
||||||
maintainer_email 'opscode-chef-openstack@googlegroups.com'
|
maintainer_email 'openstack-dev@lists.openstack.org'
|
||||||
license 'Apache2'
|
license 'Apache2'
|
||||||
description 'Library cookbook to interact with Openstack Clouds'
|
description 'Library cookbook to interact with OpenStack Clouds'
|
||||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||||
version '11.0.0'
|
version '12.0.0'
|
||||||
|
|
||||||
supports 'ubuntu', '>= 14.04'
|
supports 'ubuntu', '>= 14.04'
|
||||||
supports 'centos', '>= 6.5'
|
supports 'centos', '>= 6.5'
|
||||||
|
|
|
@ -9,10 +9,7 @@ describe 'openstack_client::_example_nova' do
|
||||||
|
|
||||||
it 'spins up a test machine' do
|
it 'spins up a test machine' do
|
||||||
expect(chef_run).to create_openstack_client_nova_server(
|
expect(chef_run).to create_openstack_client_nova_server(
|
||||||
'test1'
|
'test1').with(action: [:create])
|
||||||
).with(
|
|
||||||
action: [:create]
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -23,10 +20,7 @@ describe 'openstack_client::_example_nova' do
|
||||||
|
|
||||||
it 'deletes a test machine' do
|
it 'deletes a test machine' do
|
||||||
expect(chef_run).to delete_openstack_client_nova_server(
|
expect(chef_run).to delete_openstack_client_nova_server(
|
||||||
'test'
|
'test').with(action: [:delete])
|
||||||
).with(
|
|
||||||
action: [:delete]
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue