Sha256: 84905e00b847389e02d6e615f031cfd3232996fd52ec0060e05553aa945657e2

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

# for Rails 2.3
if Rails::VERSION::MAJOR == 2

  class NagiosEmGenerator < Rails::Generator::NamedBase
    def manifest
      record do |m|
        m.template "script_class_em.rb", "app/nagios/#{file_path}.rb"
        m.directory "spec/nagios"
        m.template "spec.rb", "spec/nagios/#{file_path}_spec.rb"
      end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nagios_helper-0.2.2 lib/generators/nagios/nagios_em_generator.rb
nagios_helper-0.2.1 lib/generators/nagios/nagios_em_generator.rb
nagios_helper-0.2 lib/generators/nagios/nagios_em_generator.rb
nagios_helper-0.1.2 lib/generators/nagios/nagios_em_generator.rb
nagios_helper-0.1.1 lib/generators/nagios/nagios_em_generator.rb