Class: Gotsha::Actions::Commit
- Inherits:
-
Object
- Object
- Gotsha::Actions::Commit
- Defined in:
- lib/gotsha/actions/commit.rb
Constant Summary collapse
- DESCRIPTION =
"runs tests on a dummy commit for manual sign-off"
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/gotsha/actions/commit.rb', line 8 def call command = BashCommand.silent_run!('git -c core.hooksPath=/dev/null commit --allow-empty -m "Run Gotsha"') raise Errors::HardFail, "something went wrong" unless command.success? Test.new.call end |