Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Add support for --path option to install #459

Merged
merged 1 commit into from
Jun 22, 2017

Conversation

mehlah
Copy link
Contributor

@mehlah mehlah commented Jul 9, 2016

This allows installing Neat into a specific directory.
It's more consistent with Bourbon CLI

Fix #351

@install_path ||= if options[:path]
Pathname.new(File.join(options[:path], 'neat'))
else
Pathname.new('neat')

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@dgalarza
Copy link
Contributor

@mehlah this LGTM. Could you address the Hound hash syntax violations and rebase off of master? Then this will be good to merge.

This allows installing Neat into a specific directory.
It's more consistent with Bourbon CLI

Fix thoughtbot#351
Pathname.new(File.join(options[:path], "neat"))
else
Pathname.new("neat")
end

Choose a reason for hiding this comment

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

end at 59, 8 is not aligned with if at 55, 24.

def install_path
@install_path ||= if options[:path]
Pathname.new(File.join(options[:path], "neat"))
else

Choose a reason for hiding this comment

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

Align else with if.

@mehlah
Copy link
Contributor Author

mehlah commented Jun 22, 2017

👋 @dgalarza! All done :) Thanks again

@dgalarza dgalarza merged commit 91ec2c0 into thoughtbot:master Jun 22, 2017
@dgalarza
Copy link
Contributor

Thanks @mehlah!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants