Sha256: 375b66fe94079ab4551b7bd3b0a184302744eb669d0f7a775d931cb9769b3659

Contents?: true

Size: 620 Bytes

Versions: 12

Compression:

Stored size: 620 Bytes

Contents

# encoding: utf-8

module Adhearsion
  module Generators
    class AppGenerator < Generator

      BASEDIRS  = %w( config lib script spec )
      EMPTYDIRS = %w( spec/support )

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
adhearsion-2.4.0 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.4.0.beta3 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.4.0.beta2 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.4.0.beta1 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.3.5 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.3.4 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.3.3 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.3.2 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.3.1 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.3.0 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.2.1 lib/adhearsion/generators/app/app_generator.rb
adhearsion-2.2.0 lib/adhearsion/generators/app/app_generator.rb