Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bundler dependency manager #260

Closed
wants to merge 1 commit into from

Conversation

edwardloveall
Copy link
Contributor

This adds bundler as a dependency manager. It seems to work (copies files, runs bundle install) but because I'm not deeply familiar with Xcode I wouldn't be surprised if there was something obvious missing. I'd love to see someone who knows better than I do actually run this and see if it does what they would expect.

cc @keith because you requested it initially

Resolves #156

@@ -35,7 +35,7 @@ def global_options
@options[:strict_prompts] = strict_prompts
end

opts.on('--dependency-managers [NAME(s)]', 'Comma separated list of dependency managers to enable. Available options: cocoapods,carthage') do |list|
opts.on('--dependency-managers [NAME(s)]', 'Comma separated list of dependency managers to enable. Available options: cocoapods,carthage,bundler') do |list|

Choose a reason for hiding this comment

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

Line is too long. [164/80]
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Copy link
Member

Choose a reason for hiding this comment

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

I just turned this on, and it runs counter to existing style, but we should follow it (and make note of places that the style needs to be updated)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Simpsons: Bart and Principal Skinner are walking along a field and a large K drops from the sky

@gfontenot
Copy link
Member

This is rad. I'm happy it dropped into the existing architecture so well.

@edwardloveall
Copy link
Contributor Author

Let me rebase and squash all these commits if you decide to merge.

<% if enable_settings && dependency_manager_enabled?("cocoapods") %>
pod install
<% end %>
<% if dependency_manager_enabled?("carthage") %>
carthage update
<% end %>
<% if dependency_manager_enabled?("bundler") %>
bundle install
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably it makes sense to do it first, so CocoaPods can be installed via bundler?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, yes, good point.

@gfontenot
Copy link
Member

@jakecraige Mind giving this a gander, since you implemented the other dependency managers?

@jakecraige
Copy link
Contributor

Sorry for the delay at looking this over. I'll try to get to it by the end of the week.

Bundler was already around in the codebase with a Gemfile, but now it can explicitly included or excluded (default excluded). It copies the Gemfile and runs `bundle install`. It is enabled with the command line flag `--dependency-managers bundler` or in .liftoffrc: `dependency_managers: bundler`

Bundler comes first in the setup script because cocoapods can be installed via bundler.

Support bundler through the rest of the codebase

Shorten options line length

Format liftoffrc manpage

Reorder bundler in script

Bundler is used to install cocoapods so it should come first
@gfontenot
Copy link
Member

Thanks! Merged as 8439456

@gfontenot gfontenot closed this May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants