Skip to content

Commit

Permalink
added command line option for heroku_secure, which will heroku-ify th…
Browse files Browse the repository at this point in the history
…e app with a config.ru that includes the Rack::Auth::Basic middleware
  • Loading branch information
hundredwatt committed Sep 15, 2010
1 parent 8a3f93b commit 45a7f89
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/showoff
Expand Up @@ -25,6 +25,19 @@ command [:create,:init] do |c|
end
end

desc 'Same as heroku create, but also adds password protection'
arg_name 'heroku_name password'
long_desc 'Creates the .gems file and config.ru file needed to push a showoff pres to heroku with password protection. it will then run ''heroku create'' for you to register the new project on heroku and add the remote for you. then all you need to do is commit the new created files and run ''git push heroku'' to deploy.'
command :heroku_secure do |c|
c.action do |global_options,options,args|
p args
raise "heroku_name is required" if args.empty?
raise "password is required" if args.length == 1
ShowOffUtils.heroku_secure(args[0], args[1])
end
end

desc 'Serves the showoff presentation in the current directory'
desc 'Setup your presentation to serve on Heroku'
arg_name 'heroku_name'
long_desc 'Creates the .gems file and config.ru file needed to push a showoff pres to heroku. it will then run ''heroku create'' for you to register the new project on heroku and add the remote for you. then all you need to do is commit the new created files and run ''git push heroku'' to deploy.'
Expand Down

0 comments on commit 45a7f89

Please sign in to comment.