-
Notifications
You must be signed in to change notification settings - Fork 898
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 #14472 from durandom/provider_generator
Provider generator - tasks_private
- Loading branch information
Showing
6 changed files
with
30 additions
and
25 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
10 changes: 10 additions & 0 deletions
10
lib/generators/provider/templates/lib/tasks/%provider_name%.rake
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,10 @@ | ||
#namespace :manageiq do | ||
# namespace :providers do | ||
# namespace :<%= provider_name %> do | ||
# desc "Explaining what the task does" | ||
# task :your_task do | ||
# # Task goes here | ||
# end | ||
# end | ||
# end | ||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
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 | ||
|
||
bin/rails app:<task> | ||
|
||
Task private to the provider should go into lib/tasks/tasks_private. |
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
lib/generators/provider/templates/lib/tasks_private/spec.rake
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,11 @@ | ||
namespace :spec do | ||
desc "Setup environment specs" | ||
task :setup => ["app:test:initialize", "app:test:verify_no_db_access_loading_rails_environment", "app:test:setup_db"] | ||
end | ||
|
||
desc "Run all specs" | ||
RSpec::Core::RakeTask.new(:spec => ["app:test:initialize", "app:evm:compile_sti_loader"]) do |t| | ||
spec_dir = File.expand_path("../../spec", __dir__) | ||
EvmTestHelper.init_rspec_task(t, ['--require', File.join(spec_dir, 'spec_helper')]) | ||
t.pattern = FileList[spec_dir + '/**/*_spec.rb'].exclude(spec_dir + '/manageiq/**/*_spec.rb') | ||
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