Sha256: 471783a977f29e3c16da12ed9c38c894574aec243c7e5c1c68fd6c86c7bd789f

Contents?: true

Size: 516 Bytes

Versions: 12

Compression:

Stored size: 516 Bytes

Contents

require 'generators/ahoy/base'

module Ahoy
  module Initialize
    def root
      File.dirname(__FILE__)
    end

    def temp_dir
      File.join(File.dirname(__FILE__), 'tmp/')
    end
  end

  module Generator
    extend Initialize

    class Base < Rails::Generators::Base
      def self.source_root
        @source_root ||= File.join(File.dirname(__FILE__), 'templates')
      end

      private

      def question(type, &block)
        Ahoy::QuestionHelper.question(type, &block)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails-ahoy-0.2.4 lib/generators/ahoy/base.rb
rails-ahoy-0.2.0 lib/generators/ahoy/base.rb
rails-ahoy-0.1.3 lib/generators/ahoy/base.rb
rails-ahoy-0.1.2 lib/generators/ahoy/base.rb
rails-ahoy-0.1.1 lib/generators/ahoy/base.rb
rails-ahoy-0.1.0 lib/generators/ahoy/base.rb
rails-ahoy-0.0.8 lib/generators/ahoy/base.rb
rails-ahoy-0.0.7 lib/generators/ahoy/base.rb
rails-ahoy-0.0.6 lib/generators/ahoy/base.rb
rails-ahoy-0.0.5 lib/generators/ahoy/base.rb
rails-ahoy-0.0.4 lib/generators/ahoy/base.rb
rails-ahoy-0.0.3 lib/generators/ahoy/base.rb