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

InputStream #75

Closed
wants to merge 22 commits into from
Closed

InputStream #75

wants to merge 22 commits into from

Conversation

henriquechehad
Copy link
Contributor

No description provided.

if payload != ""
puts "Received from STDIN: #{payload}"
end

# or using env vars: ENV['PAYLOAD']
payload = ENV['PAYLOAD']
Copy link
Contributor

Choose a reason for hiding this comment

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

This will overwrite your STDIN.

@treeder
Copy link
Contributor

treeder commented Aug 30, 2016

Some comments.

  1. Please link to related issue (ie: Change PAYLOAD input to STDIN #40 ) or if this closes an issue, say Closes #X.
  2. I still see payload env var here:
    "PAYLOAD": string(payload),
  3. Link to required related tickets, eg: https://github.com/iron-io/titan/pull/325 . This one is most definitely required before this ticket can be merged.
  4. You called it InputStream, but then used a string?

AppName: appName,
Stdout: &stdout,
Stderr: &stderr,
InputStream: string(payload),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is InputStream taking a string?

@treeder
Copy link
Contributor

treeder commented Aug 30, 2016

Needs rebase and description needs updating.

@henriquechehad henriquechehad changed the title implemented in example "hello" to work with stdin payload InputStream Aug 30, 2016

log.WithField("payload", string(payload)).Debug("Got payload")
// TODO: Print payload debug without cleaning the reader var.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we'll ever need to print this to the logs. Payload could be huge.

@henriquechehad henriquechehad mentioned this pull request Aug 31, 2016
2 tasks
@treeder
Copy link
Contributor

treeder commented Sep 12, 2016

@pedronasser can you review this PR please, thanks.

@seiflotfy
Copy link
Contributor

LGTM but needs to be resolved!

@seiflotfy
Copy link
Contributor

squashed and resolved conflicts at #111!

@seiflotfy seiflotfy closed this Oct 2, 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.

None yet

4 participants