Sha256: ff6e09b155c5f7758b25f1c84ff60f051032e6f8877f6bd788ef3c853f337cef

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

# encoding: utf-8

module Adhearsion
  module Generators
    class AppGenerator < Generator

      BASEDIRS = %w( config lib script )

      def setup_project
        self.destination_root = @generator_name
        BASEDIRS.each { |dir| directory dir }
        template "Gemfile.erb", "Gemfile"
        copy_file "gitignore", ".gitignore"
        copy_file "Procfile"
        copy_file "Rakefile"
        copy_file "README.md"
        chmod "script/ahn", 0755
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adhearsion-2.0.0.rc3 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.0.0.rc2 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.0.0.rc1 lib/adhearsion/generators/app/app_generator.rb