Commit 1a0d9d7e9c90777e69608904b8f0e38c640f0e33
Committed by
Carlos Morais
1 parent
b046e2a3
Exists in
master
and in
28 other branches
[Mezuro] s/title/name/g into project_content
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/project_content.rb
| ... | ... | @@ -19,16 +19,16 @@ class MezuroPlugin::ProjectContent < Article |
| 19 | 19 | |
| 20 | 20 | # FIXME is this really needed? |
| 21 | 21 | def project |
| 22 | - Kalibro::Client::ProjectClient.new.project(title) | |
| 22 | + Kalibro::Client::ProjectClient.new.project(name) | |
| 23 | 23 | end |
| 24 | 24 | |
| 25 | 25 | def project_result |
| 26 | - @project_result ||= Kalibro::Client::ProjectResultClient.new.last_result(title) | |
| 26 | + @project_result ||= Kalibro::Client::ProjectResultClient.new.last_result(name) | |
| 27 | 27 | end |
| 28 | 28 | |
| 29 | 29 | def module_result(module_name) |
| 30 | 30 | @module_client ||= Kalibro::Client::ModuleResultClient.new |
| 31 | - @module_client.module_result(title, module_name, project_result.date) | |
| 31 | + @module_client.module_result(name, module_name, project_result.date) | |
| 32 | 32 | end |
| 33 | 33 | |
| 34 | 34 | after_save :send_project_to_service |
| ... | ... | @@ -38,16 +38,16 @@ class MezuroPlugin::ProjectContent < Article |
| 38 | 38 | |
| 39 | 39 | def send_project_to_service |
| 40 | 40 | Kalibro::Client::ProjectClient.save(create_project) |
| 41 | - Kalibro::Client::KalibroClient.process_project(title) | |
| 41 | + Kalibro::Client::KalibroClient.process_project(name) | |
| 42 | 42 | end |
| 43 | 43 | |
| 44 | 44 | def remove_project_from_service |
| 45 | - Kalibro::Client::ProjectClient.remove(title) | |
| 45 | + Kalibro::Client::ProjectClient.remove(name) | |
| 46 | 46 | end |
| 47 | 47 | |
| 48 | 48 | def create_project |
| 49 | 49 | project = Kalibro::Entities::Project.new |
| 50 | - project.name = title | |
| 50 | + project.name = name | |
| 51 | 51 | project.license = license |
| 52 | 52 | project.description = description |
| 53 | 53 | project.repository = create_repository | ... | ... |