Class: Molflow::Commands::Jira::Projects

Inherits:
Task
  • Object
show all
Defined in:
lib/molflow/commands/jira/projects.rb

Instance Attribute Summary

Attributes inherited from Task

#options

Instance Method Summary collapse

Methods inherited from Task

#initialize, run

Constructor Details

This class inherits a constructor from Molflow::Commands::Task

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
# File 'lib/molflow/commands/jira/projects.rb', line 8

def run
  client = Jira.client
  @projects = client.Project.all

  @projects.each do |project|
    puts("#{project.key} : #{project.name}")
  end
end