Sha256: 8d310ae51a38125916a7652e0cd3155f3d6c6dc02f448e07d30b7a9e97b52a55

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 Bytes

Contents

# for Rails 3
if Rails::VERSION::MAJOR >= 3

  module Nagios
    class CheckEmGenerator < Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

      def add_files
        template "script_class_em.rb", "app/nagios/#{file_path}.rb"
        template "spec.rb", "spec/nagios/#{file_path}_spec.rb"
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nagios_helper-0.2.2 lib/generators/nagios/check_em_generator.rb
nagios_helper-0.2.1 lib/generators/nagios/check_em_generator.rb
nagios_helper-0.2 lib/generators/nagios/check_em_generator.rb