Skip to content

Commit

Permalink
Update Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Jan 31, 2024
1 parent f5b34d3 commit baf8148
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
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

# 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
end
source 'https://rubygems.org'

gemspec

Expand Down

0 comments on commit baf8148

Please sign in to comment.