Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
fix(setup): link fullstaq ruby to /usr/local/bin
Browse files Browse the repository at this point in the history
Fixes #237
  • Loading branch information
ajgon committed May 12, 2020
1 parent 4b9f9bb commit 559c015
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@
link '/usr/local/bin/bundle' do
to "/usr/lib/fullstaq-ruby/versions/#{ruby_package_ver}/bin/bundle"
end

link '/usr/local/bin/ruby' do
to "/usr/lib/fullstaq-ruby/versions/#{ruby_package_ver}/bin/ruby"
end
else
# ruby-ng provider
if node['platform_family'] == 'debian'
Expand Down
6 changes: 6 additions & 0 deletions spec/unit/recipes/setup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@
)
end

it 'links ruby' do
expect(chef_run).to create_link('/usr/local/bin/ruby').with(
to: '/usr/lib/fullstaq-ruby/versions/2.6/bin/ruby'
)
end

context 'Debian' do
it 'installs ruby 2.5' do
chef_run = ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '14.04') do |solo_node|
Expand Down

2 comments on commit 559c015

@inopinatus
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@ajgon
Copy link
Owner Author

@ajgon ajgon commented on 559c015 May 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My pleasure :) I also deployed a new version with this fix.

Please sign in to comment.