Sha256: 99b9701e1e4e6802b0c2fcf1d359536e07df29195034000d8ca48e0a6662141d

Contents?: true

Size: 782 Bytes

Versions: 10

Compression:

Stored size: 782 Bytes

Contents

module VagrantPlugins
module CORL
module Action
class CreateShares < BaseAction

  def call(env)
    super do
      env[:ui].info I18n.t("corl.vagrant.actions.create_shares.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

10 entries across 10 versions & 1 rubygems

Version Path
corl-0.4.26 lib/core/vagrant/actions/create_shares.rb
corl-0.4.25 lib/core/vagrant/actions/create_shares.rb
corl-0.4.24 lib/core/vagrant/actions/create_shares.rb
corl-0.4.23 lib/core/vagrant/actions/create_shares.rb
corl-0.4.22 lib/core/vagrant/actions/create_shares.rb
corl-0.4.21 lib/core/vagrant/actions/create_shares.rb
corl-0.4.20 lib/core/vagrant/actions/create_shares.rb
corl-0.4.19 lib/core/vagrant/actions/create_shares.rb
corl-0.4.18 lib/core/vagrant/actions/create_shares.rb
corl-0.4.17 lib/core/vagrant/actions/create_shares.rb