class GitContext::Commands::CreateContext
Public Instance Methods
call()
click to toggle source
# File lib/git_context/commands/create_context.rb, line 6 def call profile_names = @configuration.list_profile_names work_dir = @interaction.prompt_work_dir(Dir.pwd) profile_name = @interaction.prompt_profile(profile_names) context = Context.new(work_dir, profile_name) @configuration.add_context(context) @interaction.info("Context created to use #{profile_name} within #{work_dir}.") end