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

Add a method to publish a list of repos to a prefix #11

Merged
merged 4 commits into from Mar 22, 2018

Conversation

shadeslayer
Copy link
Contributor

Allow publishing a list of repositories with different components
to a single prefix

Allow publishing a list of repositories with different components
to a single prefix
@coveralls
Copy link

coveralls commented Mar 22, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 6683938 on publish_from_repos into 1d21899 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 54a89d7 on publish_from_repos into 1d21899 on master.

Copy link
Contributor

@hsitter hsitter left a comment

Choose a reason for hiding this comment

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

Some nitpicks. Otherwise LGTM

@@ -42,6 +42,16 @@ def list(connection = Connection.new, **kwords)
query: kwords)
JSON.parse(response.body).collect { |h| new(connection, h) }
end

# Publish a [Array<PublishedRepository>] list of repositories to a prefix
Copy link
Contributor

Choose a reason for hiding this comment

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

Array<Repository>

assert_equal %w[amd64], pub.Architectures
assert_equal %w[kitten puppy] , pub.Sources.collect(&:Name).sort
assert pub.Sources[0].is_a? ::Aptly::Repository

Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth it to assert the final component. Same for the unit test.

@shadeslayer
Copy link
Contributor Author

Fixed nitpicks

@shadeslayer shadeslayer merged commit 64bbf6f into master Mar 22, 2018
@shadeslayer shadeslayer deleted the publish_from_repos branch March 22, 2018 15:35
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

3 participants