lib/flickr_airlift.rb in flickr_airlift-0.0.9 vs lib/flickr_airlift.rb in flickr_airlift-0.1.0
- old
+ new
@@ -72,20 +72,15 @@
FlickRaw.shared_secret = "b9da0b4f99507dd0"
frob = flickr.auth.getFrob
auth_url = FlickRaw.auth_url :frob => frob, :perms => permission
puts " "
- if system("which open")
- puts "opening your browser..."
- sleep 1
- puts "Come back and press Enter when you are finished"
- sleep 2
- Launchy.open(auth_url)
- else
- puts "Open this url in your process to complete the authication process:"
- puts auth_url
- puts "Press Enter when you are finished."
- end
+ puts "opening your browser..."
+ sleep 1
+ puts "Come back and press Enter when you are finished"
+ sleep 2
+ Launchy.open(auth_url)
+
STDIN.getc
# Authentication
auth = flickr.auth.getToken :frob => frob
login = flickr.test.login
\ No newline at end of file