Sha256: 4516d1b61cbe9c124d4f8bd7b48c0d25322b4b72aa475b382f0d0ed85e37213d

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

require 'thor'
require 'active_support/all'

module Taza
  class FlowGenerator < PartialGenerator

    desc "This will generate your Taza flow. Example: taza flow checkout foo"
    def flow
      partial
    end

    private
    def create_partial
      template('templates/flow/flow.rb.tt', "lib/sites/#{name}/flows/#{partial_name}.rb")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taza-0.9.2.0 lib/taza/generators/flow_generator.rb