Class: Analytics::Command::Generate
- Inherits:
-
Object
- Object
- Analytics::Command::Generate
- Includes:
- Helpers::Terminal
- Defined in:
- lib/ios_analytics_cli/commands/generate.rb
Overview
A class that’s called from CLI’s ‘generate’ argument, and used to generate analytics files from the resource JSON file.
Instance Method Summary collapse
Methods included from Helpers::Terminal
Instance Method Details
#perform ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/ios_analytics_cli/commands/generate.rb', line 11 def perform unless File.file?(config_src_path) prompt.error("Unable to find #{config_src_path}") return end prompt.say('Generating analytics files...') generate prompt.ok('Analytics files are successfully generated!') end |