Class: VagrantGitHooks::Command

Inherits:
BASE_CMD
  • Object
show all
Defined in:
lib/vagrant-git-hooks/command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



37
38
39
40
41
42
43
44
45
46
# File 'lib/vagrant-git-hooks/command.rb', line 37

def execute
  UiHelpers.setup_i18n!
  @opts = { json: false, no_emoji: false, lang: nil, yes: false, dry_run: false }

  argv = parse_options(build_parser)
  return 0 unless argv

  apply_locale_and_flags
  dispatch(argv.shift, argv)
end