Subcommand plugins via `cocoapods_plugin.rb` file #3

Merged
merged 1 commit into from Nov 8, 2013

Conversation

Projects
None yet
4 participants
@leshill
Contributor

leshill commented Nov 8, 2013

Any CLAide Command can load subcommand plugins by setting the Command.plugin_prefix for the
command. Installed gems with a file named <plugin_prefix>_plugin.rb will be loaded
via that file. Convention is to require the actual command implementation in
the plugin file.

If Command.plugin_prefix is not set, no attempt is made to load any plugins.

PR CocoaPods/CocoaPods#1563 on CocoaPods to set the Command#plugin_prefix.

The open command has been updated here https://github.com/leshill/open_pod_bay/tree/new_style

Subcommand plugins via `cocoapods_plugin.rb` file
Any CLAide Command can load subcommand plugins by setting the Command.plugin_prefix for the
command. Installed gems with a file named `<plugin_prefix>_plugin.rb` will be loaded
via that file. Convention is to require the actual command implementation in
the plugin file.

If Command.plugin_prefix is not set, no attempt is made to load any plugins.
@alloy

This comment has been minimized.

Show comment
Hide comment
@alloy

alloy Nov 8, 2013

Member

Perfect, thanks again!

Member

alloy commented Nov 8, 2013

Perfect, thanks again!

alloy added a commit that referenced this pull request Nov 8, 2013

Merge pull request #3 from leshill/plugins
Subcommand plugins via `cocoapods_plugin.rb` file

@alloy alloy merged commit 2de0aea into CocoaPods:master Nov 8, 2013

1 check passed

default The Travis CI build passed
Details
@orta

This comment has been minimized.

Show comment
Hide comment
@orta

orta Nov 8, 2013

Member

Our upcoming plugins:

http://i.imgur.com/dNpUSjp.gif

Member

orta commented Nov 8, 2013

Our upcoming plugins:

http://i.imgur.com/dNpUSjp.gif

@leshill

This comment has been minimized.

Show comment
Hide comment
@leshill

leshill Nov 8, 2013

Contributor

@orta LOL!

Contributor

leshill commented Nov 8, 2013

@orta LOL!

@leshill

This comment has been minimized.

Show comment
Hide comment
@leshill

leshill Nov 8, 2013

Contributor

Hi @alloy, @irrationalfab, @orta

Thanks!

FYI the pod open plugin gem was renamed to cocoapods-open:

gem install cocoapods-open
Contributor

leshill commented Nov 8, 2013

Hi @alloy, @irrationalfab, @orta

Thanks!

FYI the pod open plugin gem was renamed to cocoapods-open:

gem install cocoapods-open
@fabiopelosin

This comment has been minimized.

Show comment
Hide comment
@leshill

This comment has been minimized.

Show comment
Hide comment
@leshill

leshill Nov 8, 2013

Contributor

👍

Contributor

leshill commented Nov 8, 2013

👍

@orta

This comment has been minimized.

Show comment
Hide comment
@orta

orta Nov 8, 2013

Member

@leshill - would you be interested in doing us a writeup on how to make a plugin as a post on the cocoapods blog?

Member

orta commented Nov 8, 2013

@leshill - would you be interested in doing us a writeup on how to make a plugin as a post on the cocoapods blog?

@leshill

This comment has been minimized.

Show comment
Hide comment
@leshill

leshill Nov 8, 2013

Contributor

Hi @orta,

Thanks for the offer, but I cannot. And honestly, it is very easy to do so. A blog post showing how to write your own subcommands would be great; and making the gem a plugin would be part of that?

Contributor

leshill commented Nov 8, 2013

Hi @orta,

Thanks for the offer, but I cannot. And honestly, it is very easy to do so. A blog post showing how to write your own subcommands would be great; and making the gem a plugin would be part of that?

@orta

This comment has been minimized.

Show comment
Hide comment
@orta

orta Nov 8, 2013

Member

Yeah, that sounds like exactly the kind of thing I would like to have. Cause we need to have docs for it somewhere.

Member

orta commented Nov 8, 2013

Yeah, that sounds like exactly the kind of thing I would like to have. Cause we need to have docs for it somewhere.

@fabiopelosin

This comment has been minimized.

Show comment
Hide comment
@fabiopelosin

fabiopelosin Nov 13, 2013

Member

I have added some bells and whistles in f925edc

Member

fabiopelosin commented Nov 13, 2013

I have added some bells and whistles in f925edc

@alloy

This comment has been minimized.

Show comment
Hide comment
@alloy

alloy Nov 13, 2013

Member

Good idea!

Member

alloy commented Nov 13, 2013

Good idea!

@leshill

This comment has been minimized.

Show comment
Hide comment
@leshill

leshill Nov 13, 2013

Contributor

@irrationalfab

👍

Contributor

leshill commented Nov 13, 2013

@irrationalfab

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment