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 Regions to info_image #232

Merged
merged 1 commit into from
Jan 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/tugboat/middleware/info_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def call(env)
say "ID: #{image.id}"
say "Distribution: #{image.distribution}"
say "Min Disk Size: #{image.min_disk_size}GB"
say "Regions: #{image.regions.join(',')}"

@app.call(env)
end
Expand Down
4 changes: 4 additions & 0 deletions spec/cli/info_image_cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
ID: 12789325
Distribution: CoreOS
Min Disk Size: 20GB
Regions: nyc1,sfo1,nyc2,ams2,sgp1,lon1,nyc3,ams3,fra1
eos
end

Expand All @@ -44,6 +45,7 @@
ID: 12438838
Distribution: Ubuntu
Min Disk Size: 20GB
Regions: nyc1,ams1,sfo1,nyc2,ams2,sgp1,lon1,nyc3,ams3,fra1
eos
end

Expand All @@ -66,6 +68,7 @@
ID: 12438838
Distribution: Ubuntu
Min Disk Size: 20GB
Regions: nyc1,ams1,sfo1,nyc2,ams2,sgp1,lon1,nyc3,ams3,fra1
eos
end

Expand Down Expand Up @@ -143,6 +146,7 @@
ID: 9801951
Distribution: Ubuntu
Min Disk Size: 20GB
Regions: nyc1,ams1,sfo1,nyc2,ams2,sgp1,lon1,nyc3,ams3,fra1
eos
end

Expand Down