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.0.0.pre.rc.3 lib/builderator/interface/vagrant.rb
builderator-1.0.0.pre.rc.1 lib/builderator/interface/vagrant.rb