Class: WorkReport::CLI

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) github_commits



158
159
160
161
# File 'lib/work_report.rb', line 158

def github_commits
  github_activity = GithubActivity.new(options.github_user, nil)
  puts github_activity.commits_to_csv
end

- (Object) github_releases



166
167
168
169
# File 'lib/work_report.rb', line 166

def github_releases
  github_activity = GithubActivity.new(options.github_user, options.github_token)
  puts github_activity.releases_to_csv
end

- (Object) redmine_activities



175
176
177
178
# File 'lib/work_report.rb', line 175

def redmine_activities
  redmine_activity = RedmineActivity.new(options.redmine_url, options.redmine_api_key, options.redmine_user_id)
  puts redmine_activity.activities_to_csv
end