generated from theforeman/foreman_plugin_template
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff8e095
commit 04a0ade
Showing
1 changed file
with
2 additions
and
17 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,22 +1,7 @@ | ||
if ENV.fetch('BUNDLE_FOREMAN', '1') == '0' | ||
source 'https://rubygems.org' | ||
else | ||
foreman_path = Dir['./foreman', '../foreman', '../../foreman'] | ||
foreman_path.map! { |path| File.join(path, 'Gemfile') } | ||
foreman_gemfile = foreman_path.detect { |p| File.exist?(p) } | ||
raise 'Foreman have not been found!' unless foreman_gemfile | ||
|
||
foreman_gemfile = File.expand_path(foreman_gemfile) | ||
eval_gemfile foreman_gemfile | ||
gemspec name: 'foreman_puppet' | ||
|
||
# remove deps, we want to redefine | ||
temporary_deletes = %w[theforeman-rubocop] | ||
temporary_deletes.concat(%w[foreman_puppet]).each do |dep_name| | ||
dep = dependencies.detect { |d| d.name == dep_name } | ||
dependencies.delete(dep) if dep | ||
end | ||
gem 'theforeman-rubocop', '~> 0.1.1', groups: %i[development rubocop] | ||
end | ||
|
||
gemspec | ||
|
||
gem 'theforeman-rubocop', '~> 0.1.1', groups: %i[development rubocop] |