Weitere ähnliche Inhalte
Ähnlich wie Ruby In Enterprise Development (20)
Kürzlich hochgeladen (20)
Ruby In Enterprise Development
- 5. class User
include Permission
set_super_role Role::GlobalAssurance
deny :add_comment, Role::DepartmentHead
...
grant :manage_groups, Role::GlobalAssurance
...
end
© ThoughtWorks 2008
- 7. MVC
C onv Test
entio
n Ov
er C o
nfigu
ration
Automation
Directory Structure
…
© ThoughtWorks 2008
- 11. Ruby as a …
• Development Language
• Glue Language
• Language for Legacy System
• …
© ThoughtWorks 2008
- 12. Ruby App Ruby App Ruby App
Ruby App Ruby App …
Java EE Server
© ThoughtWorks 2008
- 13. Legacy System Case
New Ruby Application
Legacy Database
Legacy Application Procedure
Asset 3rd Party
Search
Management Components
© ThoughtWorks 2008
- 14. Last Mile in Enterprise Development
• People
• Automation
• Design for Automated Testing of Nonfunctional Requirements
• Decouple Design from Production Environment
• …
© ThoughtWorks 2008
- 15. Automation
namespace :svn do
task :add do
sh %(svn st | grep quot;^?quot; | awk -F quot; quot; '{printf quot;quot;%squot;nquot;, $2}' | xargs -r svn add)
end
task :commit do
sh %(svn stat --ignore-externals)
require 'readline'
comment = Readline.readline(quot;[Comment]: quot;)
sh %(svn ci -m quot;#{comment}quot;)
end
task :up do
sh %(svn up})
end
end
task :commit => %w(svn:up default svn:add svn:commit)
© ThoughtWorks 2008