-
Notifications
You must be signed in to change notification settings - Fork 107
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 #97 from durandom/miq_environment
applying changes from provider generator
- Loading branch information
Showing
17 changed files
with
34 additions
and
78 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
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,4 @@ | ||
inherit_from: | ||
- https://raw.githubusercontent.com/ManageIQ/manageiq/master/.rubocop_base.yml | ||
- 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,4 +1,5 @@ | ||
inherit_from: | ||
# this is downloaded by .codeclimate.yml | ||
- .rubocop_cc_mangeiq.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
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,29 +1,12 @@ | ||
#!/usr/bin/env ruby | ||
require 'pathname' | ||
|
||
# path to your application root. | ||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) | ||
gem_root = Pathname.new(__dir__).join("..") | ||
|
||
Dir.chdir APP_ROOT do | ||
if File.exist?("spec/manageiq") | ||
puts "== Updating manageiq sample app ==" | ||
system "cd spec/manageiq && git pull" | ||
else | ||
puts "== Cloning manageiq sample app ==" | ||
system "git clone [email protected]:ManageIQ/manageiq.git --depth 1 spec/manageiq" | ||
end | ||
|
||
puts "== Installing dependencies ==" | ||
system "gem install bundler --conservative" | ||
system "bundle check || bundle install" | ||
|
||
unless File.exist?("spec/manageiq/config/database.yml") | ||
puts "\n== Copying sample config/database.yml ==" | ||
system "cp spec/manageiq/config/database.pg.yml spec/manageiq/config/database.yml" | ||
end | ||
|
||
unless File.exist?("spec/manageiq/certs/v2_key") | ||
puts "\n== Copying sample certs/v2_key ==" | ||
system "cp spec/manageiq/certs/v2_key.dev spec/manageiq/certs/v2_key" | ||
end | ||
unless gem_root.join("spec/manageiq").exist? | ||
puts "== Cloning manageiq sample app ==" | ||
system "git clone https://github.com/ManageIQ/manageiq.git --branch master --depth 1 spec/manageiq" | ||
end | ||
|
||
require gem_root.join("spec/manageiq/lib/manageiq/environment").to_s | ||
ManageIQ::Environment.manageiq_plugin_setup |
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,14 @@ | ||
#!/usr/bin/env ruby | ||
require 'pathname' | ||
|
||
gem_root = Pathname.new(__dir__).join("..") | ||
|
||
if gem_root.join("spec/manageiq").symlink? | ||
puts "== SKIPPING update of spec/manageiq because its symlinked ==" | ||
else | ||
puts "== Updating manageiq sample app ==" | ||
system("git pull", :chdir => gem_root.join("spec/manageiq")) | ||
end | ||
|
||
require gem_root.join("spec/manageiq/lib/manageiq/environment").to_s | ||
ManageIQ::Environment.manageiq_plugin_setup |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.