lib/cap_reserve.rb in cap_reserve-0.1.6 vs lib/cap_reserve.rb in cap_reserve-0.1.7
- old
+ new
@@ -105,12 +105,12 @@
url, envs = ENV['RESERVE_URL'], ENV['RESERVE_ENVS']
envs.split(/\s/).each do |env|
res = get.call("#{url}/reservations/show", :environment => env)
puts "#{env.yellow} is #{res['status'] == 'available' ? "available".green : "reserved".red}"
if res['status'] == 'reserved'
- puts " #{"#{res['user']}@#{env}".yellow} for #{expires_to_string.call(Time.at(res['expires'])).yellow}"
+ puts " #{"#{res['user']}@#{env}".yellow} for #{expires_to_string.call(Time.at(res['expires'])).yellow} at branch #{res['branch'].yellow}"
end
puts "\n"
end
end
end
-end
\ No newline at end of file
+end