Sha256: b0a951f2ad06ca4171ef323f56ea2b18c1ba96eda14744e246ffa6a9ac058b27

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

module VagrantPlugins
  module LibrarianPuppet
    class Config < Vagrant.plugin(2, :config)
      attr_accessor :puppetfile_dir

      def initialize
        @puppetfile_dir = UNSET_VALUE
      end

      def finalize!
        @puppetfile_dir = '.' if @puppetfile_dir == UNSET_VALUE
      end

      def puppetfile_path
        @puppetfile_path ||= @puppetfile_dir ? File.join(@puppetfile_dir, 'Puppetfile') : 'Puppetfile'
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-librarian-puppet-plugin-0.1.3 lib/vagrant-librarian-puppet-plugin/config.rb
vagrant-librarian-puppet-plugin-0.1.2 lib/vagrant-librarian-puppet-plugin/config.rb