Sha256: 80c272f0386ec2aadef457ead6af522d2e66c8ee3fac9f495ff1baacf9e34ffd

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 Bytes

Contents

require 'vagrant'
require 'vagrant-norequiretty'

class VagrantNoRequireTTY::Plugin < Vagrant.plugin(2)
  name 'norequiretty'

  description <<-DESC
  This plugin adds one provisioner, norequiretty, which EnDs tHE mADneSssss..

  https://bugzilla.redhat.com/show_bug.cgi?id=1020147
  DESC

  action_hook('Disable requiretty') do |hook|
    require_relative 'action'
    action = VagrantNoRequireTTY::Action

    # For RSync.
    hook.after(Vagrant::Action::Builtin::SyncedFolders, action)
    # For everything else.
    # For great justice.
  end

  [:linux].each do |os|
    guest_capability(os, :norequiretty) do
      require_relative 'cap'
      VagrantNoRequireTTY::Cap
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-norequiretty-0.0.1 lib/vagrant-norequiretty/plugin.rb