class Vermillion::Controller::Create
Public Instance Methods
one(server, name = nil)
click to toggle source
Create
a new project on the requested server
server
-
Symbol representing the server you want to access
name
-
Optional symbol, the name of the project
# File lib/client/controller/create.rb, line 20 def one(server, name = nil) @name = name || @name send_to_one(server, :create, name: @name) end
pre_exec()
click to toggle source
Prepare to execute the requested method
Calls superclass method
Vermillion::Controller::Base#pre_exec
# File lib/client/controller/create.rb, line 7 def pre_exec OptionParser.new do |opt| opt.banner = "vermillion create [...-flags]" opt.on("-n", "--name=NAME", "Directory to be created") { |o| @name = o } end.parse! super end