Sha256: 9bab1a31c3bdebff5c4aabc339af879c4d797959b412c38a216eff8ce2228286

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

require "vagrant"

module VagrantPlugins
  module LocalExecPush
    class Plugin < Vagrant.plugin("2")
      name "local-exec"
      description <<-DESC
      Run a local command or script to push
      DESC

      config(:"local-exec", :push) do
        require File.expand_path("../config", __FILE__)
        init!
        Config
      end

      push(:"local-exec") do
        require File.expand_path("../push", __FILE__)
        init!
        Push
      end

      protected

      def self.init!
        return if defined?(@_init)
        I18n.load_path << File.expand_path("../locales/en.yml", __FILE__)
        I18n.reload!
        @_init = true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/pushes/local-exec/plugin.rb