Class: Standup::App
- Inherits:
-
Object
- Object
- Standup::App
- Includes:
- EasyAppHelper
- Defined in:
- lib/standup/app.rb
Constant Summary collapse
- NAME =
'Auto Standup'- DESCRIPTION =
'Fetchs data from gitlab to report what you have done'
Instance Method Summary collapse
- #add_script_options ⇒ Object
-
#initialize ⇒ App
constructor
A new instance of App.
- #run ⇒ Object
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
13 14 15 16 17 18 19 |
# File 'lib/standup/app.rb', line 13 def initialize config.config_file_base_name = 'standup' config.describes_application app_name: NAME, app_version: Standup::VERSION, app_description: DESCRIPTION end |
Instance Method Details
#add_script_options ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/standup/app.rb', line 21 def config.add_command_line_section('Application Options') do |s| s.on :from, 'From specific day', argument: true s.on :to, 'To specific day', argument: true s.on :username, 'Username', argument: true end end |
#run ⇒ Object
29 30 31 32 33 |
# File 'lib/standup/app.rb', line 29 def run settings = ConfigParser.new(config) ReportGenerator.new(settings).gitlab_report! end |