Class: Cinch::BotTemplate::CLI::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/cinch/bot_template/cinch-bot_template.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Thor

command_help

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (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_versionNilClass

Prints version string

Returns:

  • (NilClass)

    nil



26
27
28
# File 'lib/cinch/bot_template/cinch-bot_template.rb', line 26

def __print_version
  puts Cinch::BotTemplate::VERSION
end

#genObject



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: options)
  generator.generate
end

#helloObject



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