Skip to content

Commit

Permalink
Merge pull request #72 from ot-chris-holt/master
Browse files Browse the repository at this point in the history
added support for using a different browser via command line
  • Loading branch information
ot-chris-holt committed Mar 23, 2012
2 parents d9e2eca + bc8d2ff commit 2d314be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sapphire/Configuration/AppConfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def self.Current
end

def Browser
case($config["Browser"])
case(ENV["browser"] || $config["Browser"])
when "Firefox" then FireFoxBrowser.new
when "Chrome" then ChromeBrowser.new
when "IE" then InternetExplorerBrowser.new
end
end

def ConfiguredBrowser
$config["Browser"]
ENV["browser"] || $config["Browser"]
end

end
Expand Down

0 comments on commit 2d314be

Please sign in to comment.