Skip to content

(maint) Refactor logic out of Node class#255

Merged
adreyer merged 1 commit into
puppetlabs:masterfrom
MikaelSmith:refactor-node
Jan 22, 2018
Merged

(maint) Refactor logic out of Node class#255
adreyer merged 1 commit into
puppetlabs:masterfrom
MikaelSmith:refactor-node

Conversation

@MikaelSmith
Copy link
Copy Markdown
Contributor

Removes the dumb wrappers around run_* from node. Moves logic around upload to a new UploadResult type.

Note that the deleted Node tests were mostly redundant with the Result tests.

@MikaelSmith
Copy link
Copy Markdown
Contributor Author

I was going to roll this into BOLT-292, but that needs a bit more definition and this is ready to go.

@MikaelSmith
Copy link
Copy Markdown
Contributor Author

This should probably wait on #253, as UploadResult will need to be reworked based on that PR.

@puppetcla
Copy link
Copy Markdown

CLA signed by all contributors.

@MikaelSmith MikaelSmith force-pushed the refactor-node branch 2 times, most recently from ab4336b to 7d41739 Compare January 22, 2018 22:19
@MikaelSmith MikaelSmith requested a review from nicklewis January 22, 2018 22:20
Removes the dumb wrappers around run_* from node. Moves logic around
upload to a new UploadResult type.

Note that the deleted Node tests were mostly redundant with the Result
tests.
Copy link
Copy Markdown
Contributor

@nicklewis nicklewis left a comment

Choose a reason for hiding this comment

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

I like this change

Comment thread lib/bolt/result.rb Outdated
end
end

class UploadResult < Result
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The separate classes are removed in 286

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, I thought I removed that code...

@adreyer adreyer merged commit 397ec26 into puppetlabs:master Jan 22, 2018
@MikaelSmith MikaelSmith deleted the refactor-node branch January 22, 2018 23:50
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.

4 participants