Class: Cline::GlobalState::Workspace::WorkspaceRoot

Inherits:
Schema
  • Object
show all
Defined in:
lib/cline/global_state/workspace.rb

Overview

Workspace root directory entry

Instance Attribute Summary

Attributes inherited from Schema

#extra_attributes

Public API collapse

Methods inherited from Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#commit_hashString

Returns Current commit hash.

Returns:

  • (String)

    Current commit hash



19
# File 'lib/cline/global_state/workspace.rb', line 19

attribute :commit_hash, :string

#nameString

Returns Display name.

Returns:

  • (String)

    Display name



13
# File 'lib/cline/global_state/workspace.rb', line 13

attribute :name, :string

#pathString

Returns Directory path.

Returns:

  • (String)

    Directory path



10
# File 'lib/cline/global_state/workspace.rb', line 10

attribute :path, :string

#vcsString

Returns Version control system type.

Returns:

  • (String)

    Version control system type



16
# File 'lib/cline/global_state/workspace.rb', line 16

attribute :vcs, :string