Class: Crusoe::Commands::Git::Commit

Inherits:
GitCommand show all
Defined in:
lib/crusoe/commands/git/commit.rb

Constant Summary

Constants inherited from GitCommand

GitCommand::MAIN_GIT_BRANCH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from GitCommand

#initialize

Constructor Details

This class inherits a constructor from Crusoe::Commands::Git::GitCommand

Instance Attribute Details

#directoryObject (readonly)

Returns the value of attribute directory.



8
9
10
# File 'lib/crusoe/commands/git/commit.rb', line 8

def directory
  @directory
end

Instance Method Details

#commit!Object



10
11
12
# File 'lib/crusoe/commands/git/commit.rb', line 10

def commit!
  git_client.commit(commit_message)
end