selenium-grid 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/selenium-grid +22 -1
- data/lib/selenium-grid/version.rb +1 -1
- metadata +1 -1
data/bin/selenium-grid
CHANGED
@@ -106,6 +106,19 @@ class RcRunningOptions < SeleniumGridOptions
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
+
# class GlobalOptions < SeleniumGridOptions
|
110
|
+
#
|
111
|
+
# protected
|
112
|
+
#
|
113
|
+
# def initialize_options
|
114
|
+
# return OptionParser.new do |opts|
|
115
|
+
# opts.banner = "global options"
|
116
|
+
#
|
117
|
+
# opts.on('-v', '--version', 'print the version')
|
118
|
+
# end
|
119
|
+
# end
|
120
|
+
# end
|
121
|
+
|
109
122
|
case ARGV.first
|
110
123
|
when 'grid:list':
|
111
124
|
hub = Hub.instance.list.collect { |port, component| "#{port}\t#{component}"}
|
@@ -134,8 +147,14 @@ case ARGV.first
|
|
134
147
|
puts options[:port] ? Remote.instance.running?(options[:port]) : Remote.instance.running?
|
135
148
|
when 'rc:list':
|
136
149
|
puts Remote.instance.list.collect { |port, browser| "#{port}\tremote\t#{browser}"}.sort.join("\n")
|
150
|
+
when '--version':
|
151
|
+
puts SeleniumGrid::VERSION::STRING
|
152
|
+
when '-v':
|
153
|
+
puts SeleniumGrid::VERSION::STRING
|
137
154
|
else
|
138
|
-
puts "Usage:
|
155
|
+
puts "Usage:"
|
156
|
+
puts "\tselenium-grid <command> [options]"
|
157
|
+
puts "\tselenium-grid -v/--version"
|
139
158
|
puts ""
|
140
159
|
puts "commands"
|
141
160
|
puts "\t" + %w(grid:list grid:stop hub:start hub:stop hub:list hub:running rc:start rc:stop rc:list rc:running).join("\n\t")
|
@@ -145,4 +164,6 @@ case ARGV.first
|
|
145
164
|
RcStartOptions.new.summarize
|
146
165
|
RcStopOptions.new.summarize
|
147
166
|
RcRunningOptions.new.summarize
|
167
|
+
|
168
|
+
puts "Version: #{SeleniumGrid::VERSION::STRING}"
|
148
169
|
end
|