Class: VagrantPlugins::LibrarianPuppet::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::LibrarianPuppet::Config
- Defined in:
- lib/vagrant-librarian-puppet-plugin/config.rb
Instance Attribute Summary collapse
-
#placeholder_filename ⇒ Object
Returns the value of attribute placeholder_filename.
-
#puppetfile_dir ⇒ Object
Returns the value of attribute puppetfile_dir.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #puppetfile_path ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 |
# File 'lib/vagrant-librarian-puppet-plugin/config.rb', line 7 def initialize @puppetfile_dir = UNSET_VALUE @placeholder_filename = UNSET_VALUE end |
Instance Attribute Details
#placeholder_filename ⇒ Object
Returns the value of attribute placeholder_filename.
5 6 7 |
# File 'lib/vagrant-librarian-puppet-plugin/config.rb', line 5 def placeholder_filename @placeholder_filename end |
#puppetfile_dir ⇒ Object
Returns the value of attribute puppetfile_dir.
4 5 6 |
# File 'lib/vagrant-librarian-puppet-plugin/config.rb', line 4 def puppetfile_dir @puppetfile_dir end |
Instance Method Details
#finalize! ⇒ Object
12 13 14 15 |
# File 'lib/vagrant-librarian-puppet-plugin/config.rb', line 12 def finalize! @puppetfile_dir = '.' if @puppetfile_dir == UNSET_VALUE @placeholder_filename = '.PLACEHOLDER' if @placeholder_filename == UNSET_VALUE end |
#puppetfile_path ⇒ Object
17 18 19 |
# File 'lib/vagrant-librarian-puppet-plugin/config.rb', line 17 def puppetfile_path @puppetfile_path ||= @puppetfile_dir ? File.join(@puppetfile_dir, 'Puppetfile') : 'Puppetfile' end |