shellycloud/shelly — pull request #98 by sabcio (2013-08-07 12:51:04+00:00)
Title: Create app and organization separately

[#53574603]

```
$ shelly_local add
Checking Shelly Cloud requirements

✓ Gem 'shelly' is not a part of Gemfile
ϟ Gem 'shelly-dependencies' is missing, we recommend to install it
See more at https://shellycloud.com/documentation/requirements#shelly-dependencies
Cloud code name (test - default):
Which database do you want to use postgresql, mongodb, redis, none (postgresql - default):
Select organization for this cloud:

existing organizations:
1) wtfcm
2) michalk
3) rubyonrailspl
4) mamymo
5) shellycloud

6) provide name for new organization
Option: 6
Organization name (test - default): test-org
Organization 'test-org' created
Cloud 'test' created in 'test-org' organization

Git remote shelly exists, overwrite (yes/no): yes
Adding remote shelly git@git.winniecloud.test.git
Creating Cloudfile

...
```
When organization validation fails, it will print out errors and ask again to provide organization name.

And when creating app fails it will print out the error with the command to fix, with organization present:
```
Code name has already been taken

Fix erros in the below command and type it again to create your cloud
shelly add --code-name=test --databases=postgresql --organization=test --size=large
```