Class: Nagios::CheckGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Nagios::CheckGenerator
- Defined in:
- lib/generators/nagios/check_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_files ⇒ Object
8 9 10 11 |
# File 'lib/generators/nagios/check_generator.rb', line 8 def add_files template "script_class.rb", "app/nagios/#{file_path}.rb" template "spec.rb", "spec/nagios/#{file_path}_spec.rb" end |