Skip to content

Commit

Permalink
Merge pull request #232 from bmamlin/info_image_regions
Browse files Browse the repository at this point in the history
Add Regions to info_image
  • Loading branch information
petems committed Jan 25, 2016
2 parents 783d495 + 1743488 commit 88a055c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit 88a055c

Please sign in to comment.