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

[NFY] Exchangeable executors #6

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Conversation

mpasternacki
Copy link
Member

Use the best of available mechanisms to execute files (issue #1)

@ghost ghost assigned sharnik Aug 16, 2013
@mpasternacki
Copy link
Member Author

Unfinished, sanity check needed.

Still to do:

  • Move actually setting environment variables to the runners - spawn variants can set it naturally
  • Figure out best way to spawn on JRuby; spork.gem seems to be the way
  • Document executors
  • Spec executors

out
end.lines.map { |ln| path.join(Pathname.new(ln.strip)).realpath.to_s }
rescue Executor::ExecuteError => e
raise ArgumentError, "Invalid Git repository #{where.to_s}: #{e}"
end

def initialize(where=nil, opts={})
Copy link

Choose a reason for hiding this comment

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

Nitpicking: I don't like the lack of spaces between = for default method arguments. I think it's customary to put the space - https://github.com/bbatsov/ruby-style-guide

If you have a strong preference (I saw it before in other places), we can keep this style, as I don't like inconsistency more ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

Not a preference, just a habit from my Python past. I'll try to retrain my fingers, but it's hard to tell how deep did it etch in my muscle memory ;) Thanks for noticing this!

@sharnik
Copy link

sharnik commented Aug 18, 2013

Apart from the tiny style complaint, I like it.

@mostlyobvious
Copy link

Check out https://github.com/jarib/childprocess for JRuby.

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.

3 participants