Class: Cinch::BotTemplate::CLI::App
- Defined in:
- lib/cinch/bot_template/cinch-bot_template.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#__print_version ⇒ NilClass
Prints version string.
- #gen ⇒ Object
- #hello ⇒ Object
Methods inherited from Thor
Class Method Details
.exit_on_failure? ⇒ Boolean
16 17 18 |
# File 'lib/cinch/bot_template/cinch-bot_template.rb', line 16 def self.exit_on_failure? true end |
Instance Method Details
#__print_version ⇒ NilClass
Prints version string
26 27 28 |
# File 'lib/cinch/bot_template/cinch-bot_template.rb', line 26 def __print_version puts Cinch::BotTemplate::VERSION end |
#gen ⇒ Object
35 36 37 38 |
# File 'lib/cinch/bot_template/cinch-bot_template.rb', line 35 def gen generator = Cinch::BotTemplate::CLI::Base.new(shell: self.shell, options: ) generator.generate end |
#hello ⇒ Object
43 44 45 46 |
# File 'lib/cinch/bot_template/cinch-bot_template.rb', line 43 def hello generator = Cinch::BotTemplate::Classes::Hello.new(shell: self.shell) generator.generate end |