Sha256: 09414c26203672ecbaca2802246011f3744041b9d2828b4eb69585c171b7efce

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

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

  class NagiosGenerator < Rails::Generator::NamedBase
    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
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

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