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

Allow Subprocess() with macro hash #55

Open
apotonick opened this issue Aug 31, 2022 · 3 comments
Open

Allow Subprocess() with macro hash #55

apotonick opened this issue Aug 31, 2022 · 3 comments

Comments

@apotonick
Copy link
Member

It would be great to be able to chugg an options hash (e.g. from a macro) into Subprocess().

options = {task: ..., ....}
step Subprocess(**options)
@apotonick
Copy link
Member Author

Ok, I found some places where I do

Railway.Subprocess(nested_deserializer).merge( ..)

@yogeshjain999
Copy link
Member

Cool, I'll check this out!

@apotonick
Copy link
Member Author

My current hack:

def self.___Subprocess(options)
        if options.is_a?(Hash)
          Railway.Subprocess(options[:task]).merge(options)
        else
          Railway.Subprocess(options)
        end
      end

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

No branches or pull requests

2 participants