class CF::Space::Switch
Public Instance Methods
switch_space()
click to toggle source
# File lib/cf/cli/space/switch.rb, line 8 def switch_space space = client.space_by_name(input[:name]) if space invoke :target, :space => space else raise CF::UserError, "The space #{input[:name]} does not exist, please create the space first." end end