Module: VagrantGitHooks
- Defined in:
- lib/vagrant-git-hooks/config.rb,
lib/vagrant-git-hooks/plugin.rb,
lib/vagrant-git-hooks/command.rb,
lib/vagrant-git-hooks/helpers.rb,
lib/vagrant-git-hooks/service.rb,
lib/vagrant-git-hooks/version.rb,
lib/vagrant-git-hooks/util/git.rb,
lib/vagrant-git-hooks/hook_builder.rb,
lib/vagrant-git-hooks/util/verbose.rb,
lib/vagrant-git-hooks/util/manifest.rb,
lib/vagrant-git-hooks/util/installer.rb
Defined Under Namespace
Modules: Action, HookBuilder, Service, UiHelpers, Util Classes: Command, Config, Plugin
Constant Summary collapse
- BASE_CMD =
Falls back to a minimal stand-in outside a real Vagrant environment (spec suite, rake tasks) so Command stays loadable and testable there.
if defined?(Vagrant) && Vagrant.respond_to?(:plugin) Vagrant.plugin("2", :command) else Class.new do def initialize(argv = [], env = {}) @argv = argv || [] @env = env || {} end def (parser) parser.permute!(@argv) @argv rescue OptionParser::InvalidOption nil end end end
- VERSION =
begin path = File.("VERSION", __dir__) File.exist?(path) ? File.read(path).split("#").first.strip : "0.0.0" rescue StandardError "0.0.0" end