Class: ZenPro::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/zen_pro/cli.rb

Instance Method Summary collapse

Instance Method Details

#generate(project_template_id) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/zen_pro/cli.rb', line 15

def generate(project_template_id)
  puts "Welcome to Zero Config Rails!\n\n"

  Commands::Session.new(project_template_id).

  Commands::Generate.run(project_template_id, options)
end

#logout(project_template_id) ⇒ Object



25
26
27
# File 'lib/zen_pro/cli.rb', line 25

def logout(project_template_id)
  Commands::Session.new(project_template_id).logout
end

#versionObject



30
31
32
# File 'lib/zen_pro/cli.rb', line 30

def version
  say "#{VERSION} #{RUBY_DESCRIPTION}"
end