Module: Puppi
- Defined in:
- lib/puppi.rb,
lib/puppi/files.rb,
lib/puppi/action.rb,
lib/puppi/loader.rb,
lib/puppi/version.rb,
lib/puppi/files/helper.rb,
lib/puppi/notification.rb,
lib/puppi/notifications.rb,
lib/puppi/files/datafile.rb,
lib/puppi/files/notification.rb,
lib/puppi/notifications/mail.rb,
lib/puppi/generate_sample_data.rb,
lib/puppi/notifications/stdout.rb
Defined Under Namespace
Modules: Files, Notifications
Classes: Action, GenerateSampleData, Loader, Notification
Constant Summary
collapse
- VERSION =
"0.0.3"
- @@puppidir =
"/etc/puppi"
- @@stdout_print =
true
Class Method Summary
collapse
Class Method Details
.initial_checks ⇒ Object
30
31
32
33
34
35
36
|
# File 'lib/puppi.rb', line 30
def initial_checks
directories = %w[ data helpers notifications ]
directories.each do |directory|
FileUtils.mkdir_p @@puppidir+'/'+directory
raise "Puppi::NoPuppiDir" unless File.directory?(puppidir+'/'+directory)
end
end
|
.puppidir ⇒ Object
22
23
24
|
# File 'lib/puppi.rb', line 22
def puppidir
@@puppidir
end
|
.stdout_print ⇒ Object
26
27
28
|
# File 'lib/puppi.rb', line 26
def stdout_print
@@stdout_print
end
|