Sha256: 1d2b23e71bd3b885c49fc1ba49aa59785d2a1616036b0be5cb07880d27c48222

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

module Controll
  module Generators
    class FlowGenerator < ::Rails::Generators::NamedBase
      desc 'Generates a Flow'
      
      def main_flow
        template 'flow.tt', "app/controll/flows/#{file_name}.rb"
      end

      protected

      def parent_class
        name.include?('::') ? "::Controll::Flow::#{parent_class_name}" : parent_class_name
      end      

      def parent_class_name
        'Control'
      end      
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
controll-0.3.2 lib/generators/controll/flow_handler_generator.rb
controll-0.3.1 lib/generators/controll/flow_handler_generator.rb
controll-0.3.0 lib/generators/controll/flow_handler_generator.rb