Sha256: 793a8b38fc61c4336d2c229f33d821da450d2f39246a2e397bdfbf90948ccf0a
Contents?: true
Size: 877 Bytes
Versions: 4
Compression:
Stored size: 877 Bytes
Contents
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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geordi-1.2.3 | lib/geordi/commands/firefox.rb |
geordi-1.2.2 | lib/geordi/commands/firefox.rb |
geordi-1.2.1 | lib/geordi/commands/firefox.rb |
geordi-1.2.0 | lib/geordi/commands/firefox.rb |