Sha256: 3d817835f62bb1079363314a166a745240d1d7c640b418f93c25965b9ee39ab6
Contents?: true
Size: 861 Bytes
Versions: 2
Compression:
Stored size: 861 Bytes
Contents
# frozen_string_literal: true begin require 'vagrant' rescue LoadError raise 'The vagrant-scp-sync plugin must be run within Vagrant.' end raise 'The vagrant-scp-sync plugin is only compatible with Vagrant 2+' if Vagrant::VERSION < '2' module VagrantPlugins module ScpSync # This defines the class for the plugin vagrant-scp-sync class Plugin < Vagrant.plugin('2') name 'vagrant-scp-sync' description <<-DESC Copy files to vagrant boxes via scp DESC command 'scp' do setup_i18n require_relative 'command' Command end synced_folder('scp', 5) do require_relative 'synced_folder' SyncedFolder end def self.setup_i18n I18n.load_path << File.expand_path('locales/en.yml', ScpSync.source_root) I18n.reload! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-scp-sync-0.5.10 | lib/vagrant-scp-sync/plugin.rb |
vagrant-scp-sync-0.5.9 | lib/vagrant-scp-sync/plugin.rb |