Class: GoldenRose::CLI::App
- Inherits:
-
Thor
- Object
- Thor
- GoldenRose::CLI::App
- Defined in:
- lib/golden_rose/cli/app.rb
Instance Method Summary collapse
Instance Method Details
#generate(folder_path) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/golden_rose/cli/app.rb', line 9 def generate(folder_path) say("Started formatting report...") GoldenRose::generate(folder_path, [:output]) say("Report generated in #{[:output] || Dir.pwd}/index.html", :green) rescue GoldenRose::GeneratingError => e say(e., :yellow) rescue StandardError => e say("Error during running generator.", :red) end |