Sha256: cf792240e0ad5a61449ce2016931a24bc9dd4e8c0b40e38690403203e3b90c40

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 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.template 'config/hydra.yml', 'config/hydra.yml'
      
      m.directory 'lib/sauron'
      m.file 'lib/sauron/watchr.rb', 'lib/sauron/watchr.rb' 
    end
  end
  
  protected
  
  def add_options!(opt)
    opt.on('--runners='){|v| options[:runners] = v}
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sauron-0.1.1 generators/sauron/sauron_generator.rb
sauron-0.1.0 generators/sauron/sauron_generator.rb