lib/boty/cli.rb in boty-0.2.0 vs lib/boty/cli.rb in boty-1.0.0

- old
+ new

@@ -7,9 +7,17 @@ attr_reader :bot_name, :company, :api_key source_root File.expand_path("../../../template", __FILE__) + no_commands do + def compile(bot_name = "lib/boty") + @bot_name = "lib/boty" + template "project/bot.tt", "bin/bot" + run "chmod +x bin/bot" + end + end + desc "new [BOT_NAME]", "Creates a BOT_NAME dir with your new bot structure." def new(bot_name) @bot_name = bot_name acquire_bot_info