Sha256: c760769cea0d878603d0cebea7fbe8bbb0aefb2d889c79823f64973628106051
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
module Underworld module Generators # Generate a resource on dashboard class ResourcesGenerator < Rails::Generators::Base desc 'Generates bunch of Underworld resource at once.' argument :resources , type: :array, required: true source_root File.expand_path('../templates', __FILE__) def generate_resources resources.each do |resource| generate 'underworld:resource', resource end end private end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
underworld-1.0.0 | lib/generators/underworld/resources_generator.rb |