Class: Climine::Command::Project

Inherits:
Base
  • Object
show all
Defined in:
lib/climine/command/project.rb

Instance Method Summary collapse

Instance Method Details

#get(id) ⇒ Object



5
6
7
8
# File 'lib/climine/command/project.rb', line 5

def get id
  say("required project id!", :red) unless id
  render :project, redmine.project(id)
end

#listObject



11
12
13
# File 'lib/climine/command/project.rb', line 11

def list
  render :projects, redmine.projects(options.to_hash)
end