Class: Gotsha::Actions::Init

Inherits:
Object
  • Object
show all
Defined in:
lib/gotsha/actions/init.rb

Constant Summary collapse

DESCRIPTION =
"performs the Gotsha setup (creates few files and changes Git Hooks path)"

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/gotsha/actions/init.rb', line 8

def call
  puts "Creating files..."

  config_files!
  github_action!
  gitlab_action!
  hooks!

  # TODO: I don't like this
  Kernel.system("git config --local core.hooksPath .gotsha/hooks")

  "done"
end