Class: NagiosGenerator
- Inherits:
-
Rails::Generator::NamedBase
- Object
- Rails::Generator::NamedBase
- NagiosGenerator
- Defined in:
- lib/generators/nagios/nagios_generator.rb
Instance Method Summary collapse
Instance Method Details
#manifest ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/generators/nagios/nagios_generator.rb', line 5 def manifest record do |m| m.template "script_class.rb", "app/nagios/#{file_path}.rb" m.directory "spec/nagios" m.template "spec.rb", "spec/nagios/#{file_path}_spec.rb" end end |