Sha256: c80ebcfd3c787fa52707753fe3b10ec95a86ea463838ddabb2a294381304944b

Contents?: true

Size: 586 Bytes

Versions: 42

Compression:

Stored size: 586 Bytes

Contents

require_relative '../interface'

module Builderator
  # :nodoc:
  class Interface
    class << self
      def vagrant
        @vagrant ||= Vagrant.new
      end
    end

    ##
    # Render a temporary Vagrantfile
    ##
    class Vagrant < Interface
      command 'vagrant'
      template 'template/Vagrantfile.erb'

      def command
        c = ''
        c << 'ulimit -n 1024; ' if bundled?
        c << 'VAGRANT_I_KNOW_WHAT_IM_DOING_PLEASE_BE_QUIET=true ' if bundled?
        c << which
      end

      def source
        directory.join('Vagrantfile')
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
builderator-2.1.1 lib/builderator/interface/vagrant.rb
builderator-2.1.0 lib/builderator/interface/vagrant.rb
builderator-2.0.4 lib/builderator/interface/vagrant.rb
builderator-2.0.3 lib/builderator/interface/vagrant.rb
builderator-2.0.2 lib/builderator/interface/vagrant.rb
builderator-2.0.1 lib/builderator/interface/vagrant.rb
builderator-2.0.0 lib/builderator/interface/vagrant.rb
builderator-1.3.2 lib/builderator/interface/vagrant.rb
builderator-1.3.1 lib/builderator/interface/vagrant.rb
builderator-1.3.0 lib/builderator/interface/vagrant.rb
builderator-1.2.3.pre.beta.1 lib/builderator/interface/vagrant.rb
builderator-1.2.2 lib/builderator/interface/vagrant.rb
builderator-1.2.1 lib/builderator/interface/vagrant.rb
builderator-1.2.0 lib/builderator/interface/vagrant.rb
builderator-1.1.12 lib/builderator/interface/vagrant.rb
builderator-1.1.11 lib/builderator/interface/vagrant.rb
builderator-1.1.10 lib/builderator/interface/vagrant.rb
builderator-1.1.9 lib/builderator/interface/vagrant.rb
builderator-1.1.8 lib/builderator/interface/vagrant.rb
builderator-1.1.7 lib/builderator/interface/vagrant.rb