Class: Rebot::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rebot/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bot_nameObject (readonly)

Returns the value of attribute bot_name.



8
9
10
# File 'lib/rebot/cli.rb', line 8

def bot_name
  @bot_name
end

Instance Method Details

#new(bot_name) ⇒ Object



13
14
15
16
17
18
# File 'lib/rebot/cli.rb', line 13

def new(bot_name)
  @bot_name = bot_name
  @bot_class = camel_case(bot_name)
  directory "project", bot_name, verbose: verbose
  after_create
end