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-1.1.6 lib/builderator/interface/vagrant.rb
builderator-1.1.5 lib/builderator/interface/vagrant.rb
builderator-1.1.4 lib/builderator/interface/vagrant.rb
builderator-1.1.3 lib/builderator/interface/vagrant.rb
builderator-1.1.2 lib/builderator/interface/vagrant.rb
builderator-1.1.1 lib/builderator/interface/vagrant.rb
builderator-1.1.0 lib/builderator/interface/vagrant.rb
builderator-1.0.4 lib/builderator/interface/vagrant.rb
builderator-1.0.3 lib/builderator/interface/vagrant.rb
builderator-1.0.2 lib/builderator/interface/vagrant.rb
builderator-1.0.1 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.12 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.11 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.10 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.9 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.8 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.7 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.6 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.5 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.4 lib/builderator/interface/vagrant.rb