Class: GitContext::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/git_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#profile_nameObject

Returns the value of attribute profile_name

Returns:

  • (Object)

    the current value of profile_name



19
20
21
# File 'lib/git_context.rb', line 19

def profile_name
  @profile_name
end

#work_dirObject

Returns the value of attribute work_dir

Returns:

  • (Object)

    the current value of work_dir



19
20
21
# File 'lib/git_context.rb', line 19

def work_dir
  @work_dir
end

Instance Method Details

#serializeObject



20
21
22
23
24
25
# File 'lib/git_context.rb', line 20

def serialize
  {
    'work_dir' => work_dir,
    'profile_name' => profile_name
  }
end