Class: Me::Cli::GitConfigCommand

Inherits:
Struct
  • Object
show all
Defined in:
lib/me/cli/git_config_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



6
7
8
# File 'lib/me/cli/git_config_command.rb', line 6

def email
  @email
end

#identity_nameObject

Returns the value of attribute identity_name

Returns:

  • (Object)

    the current value of identity_name



6
7
8
# File 'lib/me/cli/git_config_command.rb', line 6

def identity_name
  @identity_name
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/me/cli/git_config_command.rb', line 6

def name
  @name
end

Instance Method Details

#callObject



7
8
9
10
# File 'lib/me/cli/git_config_command.rb', line 7

def call
  git_config.configure
  current_git_config.build_view(GitConfigView)
end