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

Expose tiler options via command line #7

Closed
wants to merge 1 commit into from

Conversation

mzikherman
Copy link
Collaborator

This exposes all the options to tiler (both storage and tiling) to the command line.

I am having an issue with specc'ing the S3 part. It seems as though Fog.mock!, required for testing, is not registering when called in a before and then running the binary. Perhaps the execution of the dzt binary is happening in a different thread?

I left the spec pending for now, I did run this from the command line and verify that it worked.

screen shot 2014-10-17 at 12 40 09 pm

expect_any_instance_of(Fog::Storage::AWS::Mock).to receive(:put_object).at_least(53).times do |*args|
expect(args.last).to eq("Content-Type" => "image/jpeg", "x-amz-acl" => "public-read")
end
`"#{@binary}" slice "#{goya}" --acl=public-read --bucket=tiled-images --s3-key=dztiles --aws-id=id --aws-secret=secret`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When run, this actually produces an excon error message from S3 indicating that it's actually making a real http call, and not respecting the Fog.mock! above.

@dblock
Copy link
Owner

dblock commented Oct 17, 2014

This is great. Update CHANGELOG please and README documenting all these new things?

@mzikherman
Copy link
Collaborator Author

Ah of course! Updated docs.

@dblock
Copy link
Owner

dblock commented Oct 17, 2014

Merged via 894b7bc, thank you.

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.

2 participants