Sha256: 1cd369a178685f1cf26c4fef864f2a1b934ddcdfc676570bc8c780e536c06e12
Contents?: true
Size: 908 Bytes
Versions: 3
Compression:
Stored size: 908 Bytes
Contents
module VagrantPlugins module CommandLogs class Config < Vagrant.plugin('2', :config) attr_accessor :log_files attr_accessor :lines attr_accessor :repositories_to_check attr_accessor :clients_to_check def initialize @log_files = UNSET_VALUE @lines = UNSET_VALUE @repositories_to_check = UNSET_VALUE @clients_to_check = UNSET_VALUE end def finalize! if @log_files == UNSET_VALUE @log_files = %w(/var/log/syslog /var/log/nginx/*log /var/log/php/*log .vagrant.d/data/landrush/log) end @lines = 50 if @lines == UNSET_VALUE config = Bib::Vagrant::Config.new @repositories_to_check = [config.get['cookbook_path']] || [] if @repositories_to_check == UNSET_VALUE @clients_to_check = ['vagrant', 'VBoxManage'] if @clients_to_check == UNSET_VALUE end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-logs-0.1.1 | lib/vagrant-logs/config.rb |
vagrant-logs-0.1.0 | lib/vagrant-logs/config.rb |
vagrant-logs-0.0.1 | lib/vagrant-logs/config.rb |