chulai 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +22 -19
- data/lib/chulai/base.rb +0 -9
- data/lib/chulai/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9090a06b5be8075828a567c5cb6dad4789602a0f
|
4
|
+
data.tar.gz: a7b19877c6cbcc533b93854a91cb725d75ab409a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b734b52faf4759186722cd24cd98df63363e41ae2ba57f36a47d1a548d1a91e04efc39190a19e08f5481361f5c2f40de3ca6ad0ae0bf30fb8fded70d8425e69
|
7
|
+
data.tar.gz: b0a5c69d04992cf687fef476882ff502be98f0602550e545c24dcd87c52127d666db0042eeccdd849679da93af6b7978302944384745f1cbb095d282e30cbc34
|
data/README.md
CHANGED
@@ -1,29 +1,32 @@
|
|
1
1
|
# Chulai
|
2
2
|
|
3
|
-
|
3
|
+
Rails PaaS
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
gem install chulai
|
8
8
|
|
9
|
-
|
9
|
+
## How to
|
10
10
|
|
11
|
-
|
11
|
+
sign up on http://wo.chulai.la/
|
12
12
|
|
13
|
-
|
13
|
+
# create a new rails app
|
14
|
+
rails new example
|
15
|
+
cd example
|
16
|
+
bundle install
|
17
|
+
rails generate scaffold article title:string content:text
|
18
|
+
bundle exec rake db:migrate
|
19
|
+
cat <<EOF>config/routes.rb
|
20
|
+
Rails.application.routes.draw do
|
21
|
+
root :to => redirect("/articles")
|
22
|
+
resources :articles
|
23
|
+
end
|
24
|
+
EOF
|
14
25
|
|
15
|
-
|
26
|
+
# commit
|
27
|
+
git init
|
28
|
+
git add .
|
29
|
+
git commit -m 'first commit'
|
16
30
|
|
17
|
-
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Contributing
|
24
|
-
|
25
|
-
1. Fork it ( https://github.com/[my-github-username]/chulai/fork )
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create a new Pull Request
|
31
|
+
# deploy with chulai.la
|
32
|
+
chulai
|
data/lib/chulai/base.rb
CHANGED
@@ -170,15 +170,6 @@ module Chulai
|
|
170
170
|
exit
|
171
171
|
end
|
172
172
|
|
173
|
-
def clean
|
174
|
-
puts "cleaning"
|
175
|
-
res = http :post, "/clean.json", identity: @identity
|
176
|
-
puts res.inspect
|
177
|
-
rescue => exc
|
178
|
-
puts "failed to clean old instances: #{exc.to_s}"
|
179
|
-
exit
|
180
|
-
end
|
181
|
-
|
182
173
|
def open
|
183
174
|
url = "http://#{@username}.#{@name}.#{SUFFIX}"
|
184
175
|
Launchy.open url
|
data/lib/chulai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chulai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dong Qingshan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|