Class: PokerBotGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- PokerBotGenerator
- Defined in:
- lib/generators/poker_bot/poker_bot_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
31 32 33 |
# File 'lib/generators/poker_bot/poker_bot_generator.rb', line 31 def self. "rails generate poker_bot agent_name run_command arguments" end |
.print_usage ⇒ Object
35 36 37 38 |
# File 'lib/generators/poker_bot/poker_bot_generator.rb', line 35 def self.print_usage self.class.help(Thor::Base.shell.new) exit end |
Instance Method Details
#generate_poker_bot ⇒ Object
6 7 8 9 |
# File 'lib/generators/poker_bot/poker_bot_generator.rb', line 6 def generate_poker_bot template 'poker_bot.rb', "lib/bots/run_#{file_name}_bot.rb" print_instructions_on_updating_app end |