Class: Renuo::Cli::Commands::CreateSlidevPresentation
- Inherits:
-
Object
- Object
- Renuo::Cli::Commands::CreateSlidevPresentation
- Defined in:
- lib/renuo/cli/commands/create_slidev_presentation.rb
Constant Summary collapse
- EXAMPLE_SLIDES_URL =
"https://raw.githubusercontent.com/renuo/slidev-theme-renuo/main/example.md"
- SLIDEV_THEME_NAME =
"renuo"
- TEMPLATE_DIRECTORY =
"../templates/slidev"
Instance Attribute Summary collapse
-
#presentation_author ⇒ Object
Returns the value of attribute presentation_author.
-
#presentation_name ⇒ Object
Returns the value of attribute presentation_name.
Instance Method Summary collapse
Instance Attribute Details
#presentation_author ⇒ Object
Returns the value of attribute presentation_author.
8 9 10 |
# File 'lib/renuo/cli/commands/create_slidev_presentation.rb', line 8 def end |
#presentation_name ⇒ Object
Returns the value of attribute presentation_name.
8 9 10 |
# File 'lib/renuo/cli/commands/create_slidev_presentation.rb', line 8 def presentation_name @presentation_name end |
Instance Method Details
#run(args) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/renuo/cli/commands/create_slidev_presentation.rb', line 17 def run(args) @presentation_name = args[0] abort(">> No presentation name given.") unless @presentation_name say "# Commands to setup Slidev project with the Renuo theme:".colorize :green = args[1] || "Renuo AG" end |