Sha256: 83436c50aa736c2722286a0bc786439c0df63b355013571be62acea0f399170f

Contents?: true

Size: 780 Bytes

Versions: 22

Compression:

Stored size: 780 Bytes

Contents

module VagrantPlugins
module CORL
module Action
class LinkNetwork < BaseAction

  def call(env)
    super do
      env[:ui].info I18n.t("corl.vagrant.actions.link_network.start")
      
      vm.communicate.tap do |comm|
        # TODO: Figure out a better solution for remote network path.
        # Needs to work before facter and corl are installed
        # Local searches of remote configurations in the project perhaps?
        network_path = ::CORL::Config.fact(:corl_network)
        
        # Make sure the CORL network directory is properly set up
        # Vagrant root (project) directory is shared by default
        comm.sudo("rm -Rf #{network_path}")
        comm.sudo("ln -s /vagrant #{network_path}")
      end
      @app.call env
    end
  end
end
end
end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
corl-0.5.18 lib/core/vagrant/actions/link_network.rb
corl-0.5.17 lib/core/vagrant/actions/link_network.rb
corl-0.5.16 lib/core/vagrant/actions/link_network.rb
corl-0.5.15 lib/core/vagrant/actions/link_network.rb
corl-0.5.14 lib/core/vagrant/actions/link_network.rb
corl-0.5.13 lib/core/vagrant/actions/link_network.rb
corl-0.5.12 lib/core/vagrant/actions/link_network.rb
corl-0.5.11 lib/core/vagrant/actions/link_network.rb
corl-0.5.10 lib/core/vagrant/actions/link_network.rb
corl-0.5.9 lib/core/vagrant/actions/link_network.rb
corl-0.5.8 lib/core/vagrant/actions/link_network.rb
corl-0.5.7 lib/core/vagrant/actions/link_network.rb
corl-0.5.6 lib/core/vagrant/actions/link_network.rb
corl-0.5.5 lib/core/vagrant/actions/link_network.rb
corl-0.5.4 lib/core/vagrant/actions/link_network.rb
corl-0.5.3 lib/core/vagrant/actions/link_network.rb
corl-0.5.2 lib/core/vagrant/actions/link_network.rb
corl-0.5.1 lib/core/vagrant/actions/link_network.rb
corl-0.5.0 lib/core/vagrant/actions/link_network.rb
corl-0.4.29 lib/core/vagrant/actions/link_network.rb