Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
all
Browse files Browse the repository at this point in the history
  • Loading branch information
ciberch committed Jul 13, 2012
1 parent c138d0a commit 6cfc3f0
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .rvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rvm use 1.9.2@presos
rvm use 1.9.2-p290@presos
98 changes: 59 additions & 39 deletions cc/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: Ruby Apps on Cloud Foundry
title: Ruby for #ContributingCode

!SLIDE

Expand All @@ -10,6 +10,13 @@ title: Ruby Apps on Cloud Foundry
![main](/img/head2.jpg)
<% end %>


!SLIDE vcenter

## Follow along

### [http://studios.cloudfoundry.com/cc](http://studios.cloudfoundry.com/cc/index.html)

!SLIDE

<%= include "../shared/intro_paas.md" %>
Expand All @@ -23,41 +30,77 @@ title: Ruby Apps on Cloud Foundry

<%= include "../shared/cfdotcom.md" %>

!SLIDE vcenterH2
!SLIDE

## Getting Your Hands Dirty
## Ruby is…

!SLIDE vcenter
- Dynamic
- Open source programming language
- Focus on simplicity and productivity.
- Elegant syntax that is natural to read and easy to write.

## WiFi
!SLIDE

### `vmair`
## Ruby Syntax

!SLIDE vcenter
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end

## Follow along
def salute
puts "Hello #{@name}!"
end
end

### [http://studios.cloudfoundry.com/cc](http://studios.cloudfoundry.com/cc/index.html)
# Create a new object
g = Greeter.new("world")

# Output "Hello World!"
g.salute

More at http://www.ruby-lang.org/en/

!SLIDE

<%= include "../shared/started.md" %>
## Ruby Web Frameworks

!SLIDE vcenter
### Sinatra

## Signup Promo Code
- Detection of Sinatra apps via `require 'sinatra'`
- Runs on Thin or Webrick

### Rack

### [`ContributingCode`](https://my.cloudfoundry.com/signup/ContributingCode)
- Detection via `config.ru`
- No web server added

!SLIDE

## Assumptions for Demos
## Rails

### You have [RVM](http://beginrescueend.com/) installed
- Web Development Framework
- MVC Architecture
- Written in Ruby
- Convention over Configuration
- RESTful
- Agile
- Clean

### You have Ruby `1.9.2` available
!SLIDE

## Rails on Cloud Foundry

- Supports 3.0, 3.1 and 3.2
- Runs on Thin or Webrick
- Detection of Rails apps via presence of `config/environment.rb`

!SLIDE vcenter

## Assumptions for Demos

### You have [RVM](http://beginrescueend.com/) with Ruby `1.9.2` available

!SLIDE vcenterH2

Expand Down Expand Up @@ -115,8 +158,6 @@ title: Ruby Apps on Cloud Foundry

<%= include "../shared/mongodb.md" %>

## Talk about MongoDB at 2:00pm

!SLIDE

<%= include "../shared/redis.md" %>
Expand Down Expand Up @@ -174,27 +215,6 @@ You can then use `VMC::Client`
haml :apps
end

!SLIDE

## Ruby Web Frameworks

### Sinatra

- Detection of Sinatra apps via `require 'sinatra'`
- Runs on Thin or Webrick

### Rails

- Supports 3.0, 3.1 and 3.2
- Runs on Thin or Webrick
- Detection of Rails apps via presence of `config/environment.rb`


### Rack

- Detection via `config.ru`
- No web server added

!SLIDE vcenter

## Demo
Expand Down

0 comments on commit 6cfc3f0

Please sign in to comment.