Sha256: f399ab8c81e65ceb42a4944be62d8a3baac0c9db2d28db84fbff00958c9a5c4f
Contents?: true
Size: 641 Bytes
Versions: 8
Compression:
Stored size: 641 Bytes
Contents
# encoding: utf-8 module Adhearsion module Generators class AppGenerator < Generator BASEDIRS = %w( config lib script spec ) EMPTYDIRS = %w( spec/call_controllers 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
8 entries across 8 versions & 1 rubygems