Class: Crusoe::Commands::Git::GitCommand
- Inherits:
-
Object
- Object
- Crusoe::Commands::Git::GitCommand
- Defined in:
- lib/crusoe/commands/git/git_command.rb
Direct Known Subclasses
Constant Summary collapse
- MAIN_GIT_BRANCH =
"main".freeze
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
Instance Method Summary collapse
-
#initialize(directory:) ⇒ GitCommand
constructor
A new instance of GitCommand.
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
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
9 10 11 |
# File 'lib/crusoe/commands/git/git_command.rb', line 9 def directory @directory end |