class Vermillion::Controller::Change

Public Instance Methods

branch(server, to = nil) click to toggle source

Change branches on the selected server

server

Symbol representing the server you want to access

to

Optional symbol, what branch should we change to?

# File lib/client/controller/change.rb, line 20
def branch(server, to = nil)
  @to = to || @to
  send_to_one(server, :change_branch, to: @to)
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/change.rb, line 7
def pre_exec
  OptionParser.new do |opt|
    opt.banner = "vermillion change [...-flags]"

    opt.on("-t", "--to=TO", "Branch to change to") { |o| @to = o }
  end.parse!

  super
end