-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #628 from Fryguy/plugin_generator_changes
Plugin Generator Updates
- Loading branch information
Showing
16 changed files
with
91 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,37 @@ | ||
--- | ||
exclude_paths: | ||
- ".git/" | ||
- "**.xml" | ||
- "**.yaml" | ||
- "**.yml" | ||
- locale/ | ||
- spec/ | ||
- tools/ | ||
engines: | ||
brakeman: | ||
version: '2' | ||
prepare: | ||
fetch: | ||
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml | ||
path: ".rubocop_base.yml" | ||
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml | ||
path: ".rubocop_cc_base.yml" | ||
checks: | ||
argument-count: | ||
enabled: false | ||
bundler-audit: | ||
complex-logic: | ||
enabled: false | ||
csslint: | ||
file-lines: | ||
enabled: false | ||
duplication: | ||
enabled: true | ||
method-complexity: | ||
config: | ||
languages: | ||
- ruby | ||
- javascript | ||
eslint: | ||
threshold: 11 | ||
method-count: | ||
enabled: false | ||
channel: eslint-3 | ||
fixme: | ||
method-lines: | ||
enabled: false | ||
markdownlint: | ||
nested-control-flow: | ||
enabled: false | ||
return-statements: | ||
enabled: false | ||
plugins: | ||
rubocop: | ||
enabled: true | ||
config: ".rubocop_cc.yml" | ||
channel: rubocop-0-69 | ||
prepare: | ||
fetch: | ||
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml | ||
path: ".rubocop_base.yml" | ||
- url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml | ||
path: ".rubocop_cc_base.yml" | ||
ratings: | ||
paths: | ||
- Gemfile.lock | ||
- "**.rake" | ||
- "**.rb" | ||
channel: 'rubocop-0-69' | ||
exclude_patterns: | ||
- node_modules/ | ||
- spec/ | ||
- test/ | ||
- tmp/ | ||
- vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
inherit_from: | ||
- https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml | ||
# put all local rubocop config into .rubocop_local.yml as it will be loaded by .rubocop_cc.yml as well | ||
- .rubocop_local.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
inherit_from: | ||
# this is downloaded by .codeclimate.yml | ||
- .rubocop_base.yml | ||
- .rubocop_cc_base.yml | ||
- .rubocop_local.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
--- | ||
dist: xenial | ||
language: ruby | ||
cache: bundler | ||
rvm: | ||
- 2.5.7 | ||
- 2.6.5 | ||
sudo: false | ||
cache: bundler | ||
env: | ||
global: | ||
- RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000 | ||
- RUBY_GC_HEAP_INIT_SLOTS=600000 | ||
- RUBY_GC_HEAP_GROWTH_FACTOR=1.25 | ||
addons: | ||
postgresql: '10' | ||
install: bin/setup | ||
after_script: bundle exec codeclimate-test-reporter | ||
after_script: bin/ci/after_script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
require "manageiq/providers/vmware/engine" | ||
require "manageiq/providers/vmware/version" | ||
|
||
require "manageiq/providers/vmware" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
Tasks (.rake files) in this directory will be available in the main ManageIQ app. | ||
They can be executed in the provider gem via the app: namespace | ||
Tasks (.rake files) in this directory will be available as public tasks in the main | ||
ManageIQ app. They can be executed in the plugin gem via the app: namespace | ||
|
||
```shell | ||
bin/rails app:<task> | ||
``` | ||
|
||
Task private to the provider should go into lib/tasks/tasks_private. | ||
Since these tasks are public, please namespace them, as in the following example: | ||
|
||
```ruby | ||
namespace "manageiq:providers:vmware" do | ||
desc "Explaining what the task does" | ||
task :your_task do | ||
# Task goes here | ||
end | ||
end | ||
``` | ||
|
||
Tasks places in the lib/tasks_private directory will be private to the plugin | ||
and not available in the ManageIQ app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
$:.push File.expand_path("../lib", __FILE__) | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'manageiq/providers/vmware/version' | ||
|
||
require "manageiq/providers/vmware/version" | ||
Gem::Specification.new do |spec| | ||
spec.name = "manageiq-providers-vmware" | ||
spec.version = ManageIQ::Providers::Vmware::VERSION | ||
spec.authors = ["ManageIQ Authors"] | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "manageiq-providers-vmware" | ||
s.version = ManageIQ::Providers::Vmware::VERSION | ||
s.authors = ["ManageIQ Developers"] | ||
s.homepage = "https://github.com/ManageIQ/manageiq-providers-vmware" | ||
s.summary = "Vmware Provider for ManageIQ" | ||
s.description = "Vmware Provider for ManageIQ" | ||
s.licenses = ["Apache-2.0"] | ||
spec.summary = "ManageIQ plugin for the VMware provider." | ||
spec.description = "ManageIQ plugin for the VMware provider." | ||
spec.homepage = "https://github.com/ManageIQ/manageiq-providers-vmware" | ||
spec.license = "Apache-2.0" | ||
|
||
s.files = Dir["{app,config,lib}/**/*"] | ||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
|
||
s.add_dependency("fog-vcloud-director", ["~> 0.3.0"]) | ||
s.add_dependency "ffi-vix_disk_lib", "~>1.1" | ||
s.add_dependency "rbvmomi", "~>3.0" | ||
s.add_dependency "vmware_web_service", "~>2.0" | ||
s.add_dependency "vsphere-automation-sdk", "~>0.4.7" | ||
spec.add_dependency "fog-vcloud-director", "~> 0.3.0" | ||
spec.add_dependency "ffi-vix_disk_lib", "~>1.1" | ||
spec.add_dependency "rbvmomi", "~>3.0" | ||
spec.add_dependency "vmware_web_service", "~>2.0" | ||
spec.add_dependency "vsphere-automation-sdk", "~>0.4.7" | ||
|
||
s.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0" | ||
s.add_development_dependency "simplecov" | ||
spec.add_development_dependency "simplecov" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters