Sha256: 6f07a34ad2458d055fa54303f10cf492df8484098428ffbc08815dac34f14f09

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

require 'vagrant-mutate/version'
require 'vagrant-mutate/errors'

module VagrantMutate
  def self.source_root
    @source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
  end

  class Plugin < Vagrant.plugin('2')
    name 'vagrant-mutate'

    command 'mutate' do
      setup_i18n
      require 'vagrant-mutate/mutate'
      Mutate
    end

    def self.setup_i18n
      I18n.load_path << File.expand_path('locales/en.yml', VagrantMutate.source_root)
      I18n.reload!
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vagrant-mutate-1.1.0 lib/vagrant-mutate.rb
vagrant-mutate-1.0.4 lib/vagrant-mutate.rb
vagrant-mutate-1.0.3 lib/vagrant-mutate.rb
vagrant-mutate-1.0.2 lib/vagrant-mutate.rb
vagrant-mutate-1.0.1 lib/vagrant-mutate.rb
vagrant-mutate-1.0.0 lib/vagrant-mutate.rb