Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize firefox commands: They are now
firefox
and `firefox --se…
…tup VERSION`
- Loading branch information
Showing
4 changed files
with
33 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
desc 'firefox COMMAND', 'Run a command with firefox for selenium set up' | ||
long_desc <<-LONGDESC | ||
Example: `geordi firefox b cucumber` or `geordi firefox --setup 24.0` | ||
Useful when you need Firefox for Selenium, but can't use the `geordi cucumber` | ||
command. | ||
*Install* a special Firefox by calling with `--setup <version>`. | ||
LONGDESC | ||
|
||
option :setup, :type => :string, :banner => 'setup=FIREFOX_VERSION', | ||
:desc => 'If set, will install a special Firefox with the given version' | ||
|
||
def firefox(*command) | ||
if options.setup | ||
require 'geordi/firefox_for_selenium' | ||
Geordi::FirefoxForSelenium.install(options.setup) | ||
|
||
else | ||
note 'Setting up Firefox for Selenium ...' | ||
|
||
require 'geordi/cucumber' | ||
Cucumber.new.setup_vnc | ||
FirefoxForSelenium.setup_firefox | ||
|
||
puts | ||
note_cmd command.join(' ') | ||
system *command # Util.system! would reset the Firefox PATH | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters