lib/tasks/milestone.rake in instrumental-0.1.8 vs lib/tasks/milestone.rake in instrumental-0.1.9
- old
+ new
@@ -1,8 +1,15 @@
namespace :instrumental do
desc "Adds a milestone marker to the Imperial project"
task :milestone => :environment do
- Instrumental.milestone(ENV['name'])
+ puts "Setting milestone..."
+ response = Instrumental.milestone(ENV['name'])
+
+ if response.is_a?(Net::HTTPSuccess)
+ puts "Success!!"
+ else
+ puts "[Instrumental] Unexpected response from server (#{ response.code }): #{ response.message }"
+ end
end
end
\ No newline at end of file