class Me::Cli::SwitchCommand
Attributes
activation_views[R]
Public Instance Methods
call()
click to toggle source
# File lib/me/cli/switch_command.rb, line 8 def call identity.activate activate_configuration views end
Private Instance Methods
activate_command()
click to toggle source
# File lib/me/cli/switch_command.rb, line 24 def activate_command @_activate_command ||= ActivateCommand.new end
activate_configuration()
click to toggle source
# File lib/me/cli/switch_command.rb, line 28 def activate_configuration @activation_views ||= Array(activate_command.call) end
active_identity()
click to toggle source
# File lib/me/cli/switch_command.rb, line 32 def active_identity Identity.active end
active_identity_views()
click to toggle source
# File lib/me/cli/switch_command.rb, line 36 def active_identity_views [active_identity.build_view(NewActiveIdentityView)] end
identity()
click to toggle source
# File lib/me/cli/switch_command.rb, line 40 def identity Registry.identity_mapper_factory.new(name).find end
views()
click to toggle source
# File lib/me/cli/switch_command.rb, line 20 def views active_identity_views + activation_views end