Class: Crusoe::Commands::Git::GitCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/crusoe/commands/git/git_command.rb

Direct Known Subclasses

Add, Checkout, Commit, RemoteGitCommand, Status

Constant Summary collapse

MAIN_GIT_BRANCH =
"main".freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(directory:) ⇒ GitCommand

Returns a new instance of GitCommand.



11
12
13
14
# File 'lib/crusoe/commands/git/git_command.rb', line 11

def initialize(directory:)
  super()
  @directory = directory
end

Instance Attribute Details

#directoryObject (readonly)

Returns the value of attribute directory.



9
10
11
# File 'lib/crusoe/commands/git/git_command.rb', line 9

def directory
  @directory
end