lib/adhearsion/generators/app/app_generator.rb in adhearsion-1.2.6 vs lib/adhearsion/generators/app/app_generator.rb in adhearsion-2.0.0.alpha1
- old
+ new
@@ -10,15 +10,11 @@
module Adhearsion
module Generators
class AppGenerator < Thor::Group
include Thor::Actions
- BASEDIRS = %w{
- components
- config
- script
- }
+ BASEDIRS = %w( config lib script )
argument :app_action, :type => :string
argument :app_path, :type => :string
def self.source_root(path = nil)
@@ -31,17 +27,12 @@
end
def setup_project
self.destination_root = @app_path
BASEDIRS.each { |dir| directory dir }
- %w{
- .ahnrc
- dialplan.rb
- events.rb
- README
- Rakefile
- Gemfile
- }.each { |file| copy_file file }
+ copy_file "Gemfile"
+ copy_file "Rakefile"
+ copy_file "README.md"
end
end
end
end