Sha256: c9036b2f551205d4b7a27fe3af602bdb3f6b4b1fa99db01331410f1af2cfd677

Contents?: true

Size: 672 Bytes

Versions: 19

Compression:

Stored size: 672 Bytes

Contents

# -*- encoding : utf-8 -*-

require 'rails/generators'

require 'mdwa/dsl'

module Mdwa
  module Generators
    class ProcessGenerator < Rails::Generators::Base
      
      source_root File.expand_path("../templates", __FILE__)

      argument :description, :type => :string, :banner => 'Process description'
      
      class_option :no_comments, :type => :boolean, :default => false, :desc => 'Generates process without comments.'
      
      def code_generation
        @process = MDWA::DSL::Process.new(description)
        template 'requirement.rb', "#{MDWA::DSL::WORKFLOW_PATH}#{@process.alias}.rb"
      end
      
    end # entity
  end # generators
end # mdwa

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mdd-3.1.4 lib/generators/mdwa/process/process_generator.rb
mdd-3.1.2 lib/generators/mdwa/process/process_generator.rb
mdd-3.1.1 lib/generators/mdwa/process/process_generator.rb
mdd-3.1.0 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.20 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.19 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.18 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.17 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.16 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.15 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.14 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.13 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.10 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.9 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.8 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.7 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.6 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.4 lib/generators/mdwa/process/process_generator.rb
mdd-3.0.3 lib/generators/mdwa/process/process_generator.rb