lib/adhearsion/cli.rb in adhearsion-0.8.0 vs lib/adhearsion/cli.rb in adhearsion-0.8.1
- old
+ new
@@ -113,10 +113,10 @@
file.puts <<-RUBY
# See http://docs.adhearsion.com for more information on how to write components or
# look at the examples in newly-created projects.
RUBY
end
- File.open(new_component_dir + "/config.yml","w") do |file|
+ File.open(new_component_dir + "/#{component_name}.yml","w") do |file|
file.puts '# You can use this file for component-specific configuration.'
end
puts "Created blank component '#{component_name}' at components/#{component_name}"
else
raise CommandHandler::UnknownCommand.new("Provided too many arguments to 'create'")