Sha256: 4cb852f90610cee498e80b2faedfd862329901a185c8ce79b8a31153a5974354

Contents?: true

Size: 629 Bytes

Versions: 3

Compression:

Stored size: 629 Bytes

Contents

class SauronGenerator < Rails::Generator::Base
  def manifest
    options[:runners] ||= 4

    record do |m|
      m.file 'sauron_watchr.rb', 'sauron_watchr.rb'
      m.file 'test_helper.rb', 'test_helper.rb'
      m.file 'sauron', 'sauron', :chmod => 0755

      m.template 'config/hydra.yml', 'config/hydra.yml'
      
      m.directory 'lib/sauron'
      m.file 'lib/sauron/watchr.rb', 'lib/sauron/watchr.rb' 
      
      m.directory 'lib/tasks'
      m.file 'lib/tasks/sauron.rake', 'lib/tasks/sauron.rake'
    end
  end
  
  protected
  
  def add_options!(opt)
    opt.on('--runners='){|v| options[:runners] = v}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sauron-0.1.8 generators/sauron/sauron_generator.rb
sauron-0.1.7 generators/sauron/sauron_generator.rb
sauron-0.1.6 generators/sauron/sauron_generator.rb