Class: Boty::CLI

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#bot_nameObject (readonly)

Returns the value of attribute bot_name.



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

def bot_name
  @bot_name
end

#companyObject (readonly)

Returns the value of attribute company.



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

def company
  @company
end

Instance Method Details

#new(bot_name) ⇒ Object



22
23
24
25
26
27
# File 'lib/boty/cli.rb', line 22

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