199
200
201
202
203
204
205
206
207
|
# File 'lib/grid/grid.rb', line 199
def create(args=nil)
name = ask("Grid name: ") { |q| q.default = "Grid" }
description = ask("Grid description: ") { |q| q.default = "Grid created #{Time.now}" }
total_nodes = ask("Number of nodes: ") { |q| q.default = 5 }
location = ask("Location of nodes: ") { |q| q.default = "us-east" }
driver = ask("Driver: ") { |q| q.default = "webdriver" } unless @api
@grid_id = create_grid(name, description, driver, location, total_nodes)
show(@grid_id)
end
|