Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ link_report.txt
.yardoc
puppet-docs-build.log
source/.jekyll-cache/
.ruby-version
.ruby-version
Gemfile.lock
1 change: 1 addition & 0 deletions lib/puppet_references.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def self.build_facter_references(commit)
version4 = Gem::Version.create('4.0.0')
repo = PuppetReferences::Repo.new('facter', FACTER_DIR)
real_commit = repo.checkout(commit)
repo.update_bundle
if !semantic?(commit) || (semantic?(commit) && Gem::Version.create(commit) >= version4)
references << PuppetReferences::Facter::FacterCli
elsif semantic?(commit) && Gem::Version.create(commit) < version4
Expand Down
6 changes: 4 additions & 2 deletions lib/puppet_references/repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def update_bundle
puts "In #{@name} dir: Running bundle update."
PuppetReferences::Util.run_dirty_command('bundle update')
else
puts "In #{@name} dir: Running bundle install --path .bundle/stuff"
PuppetReferences::Util.run_dirty_command('bundle install --path .bundle/stuff')
puts "In #{@name} dir: Running bundle config set --local path '.bundle/stuff'"
PuppetReferences::Util.run_dirty_command("bundle config set --local path '.bundle/stuff'")
puts "In #{@name} dir: Running bundle install"
PuppetReferences::Util.run_dirty_command('bundle install')
end
end
end
Expand Down
Loading