Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

Commit

Permalink
Ensure that Launchy is required
Browse files Browse the repository at this point in the history
  • Loading branch information
mwunsch committed Jan 29, 2013
1 parent 956bebb commit 424971d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tumblr/command_line_interface.rb
Expand Up @@ -158,13 +158,14 @@ def list()
LONGDESC
def authorize(*soak)
require 'tumblr/authentication'
require 'launchy'
sinatra_options = {
:port => options[:port],
:bind => options[:bind],
:credential_path => options[:credentials]
}
Tumblr::Authentication.run!(sinatra_options) do |server|
Launchy.open("http://#{options[:bind]}:#{options[:port]}/")
::Launchy.open("http://#{options[:bind]}:#{options[:port]}/")
end
if has_credentials?
ui_success "Success! Your Tumblr OAuth credentials were written to #{credentials.path}"
Expand Down

0 comments on commit 424971d

Please sign in to comment.