Permalink
Browse files

Heroku integration complete

  • Loading branch information...
1 parent 823dfd8 commit 11727ca29900ceb9f3f7a579ee38472f86128061 @epall epall committed Feb 1, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 generators/sauce/sauce_generator.rb
  2. +1 −1 sauce.gemspec
@@ -5,8 +5,8 @@ class SauceGenerator < Rails::Generator::Base
def initialize(runtime_args, runtime_options = {})
config = Sauce::Config.new
if config.username.nil? || config.access_key.nil?
- if runtime_args.size != 2
- raise "Usage: #{$0} sauce <USERNAME> <ACCESS_KEY>"
+ if runtime_args.size >= 2
+ puts "No username or API key specified. Assuming you're using Heroku Sauce"
else
system("sauce config #{runtime_args[0]} #{runtime_args[1]}")
end
View
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Sean Grove", "Eric Allen", "Steven Hazel"]
- s.date = %q{2011-01-26}
+ s.date = %q{2011-01-31}
s.default_executable = %q{sauce}
s.description = %q{A Ruby interface to Sauce Labs' services. Start/stop tunnels, retrieve Selenium logs, access video replays, etc.}
s.email = %q{help@saucelabs.com}

0 comments on commit 11727ca

Please sign in to comment.