chulai 0.1.1
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 +7 -0
- data/.gitignore +24 -0
- data/Gemfile +4 -0
- data/Guardfile +17 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/bin/chulai +5 -0
- data/chulai.gemspec +35 -0
- data/design +35 -0
- data/lib/chulai/base.rb +249 -0
- data/lib/chulai/cli.rb +33 -0
- data/lib/chulai/version.rb +3 -0
- data/lib/chulai.rb +20 -0
- data/spec/chulai_spec.rb +6 -0
- data/spec/spec_helper.rb +3 -0
- metadata +244 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d2ea42ec70f7b51d360bba9e27e1083f4321616c
|
4
|
+
data.tar.gz: 6880e4789418b7c37f4d83cf6f8e4177cacf168a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 373b3d4d8c70e62585bdb31c3aa70ff3009593e5e268f7d02529a737b9204335102bc68703a8ba3ae38b942ece39df840475a3c28d29fc91e2f24ce937dbfbb0
|
7
|
+
data.tar.gz: c569a06c090d986ac6706e910d00b37edd5277e88ebfe4c28a2ff77ec05d10268a486c00d05de1976351f55871f2edd5a0941650308557cde0f3bd3a1566aca1
|
data/.gitignore
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
23
|
+
*.swp
|
24
|
+
*.DS_Store
|
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
5
|
+
# rspec may be run, below are examples of the most common uses.
|
6
|
+
# * bundler: 'bundle exec rspec'
|
7
|
+
# * bundler binstubs: 'bin/rspec'
|
8
|
+
# * spring: 'bin/rsspec' (This will use spring if running and you have
|
9
|
+
# installed the spring binstubs per the docs)
|
10
|
+
# * zeus: 'zeus rspec' (requires the server to be started separetly)
|
11
|
+
# * 'just' rspec: 'rspec'
|
12
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
13
|
+
watch(%r{^spec/.+_spec\.rb$})
|
14
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
15
|
+
watch(%r{^lib/chulai/(.+)\.rb$}) { |m| "spec/lib/chulai/#{m[1]}_spec.rb" }
|
16
|
+
watch('spec/spec_helper.rb') { "spec" }
|
17
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Dong Qingshan
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Chulai
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'chulai'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install chulai
|
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
|
data/Rakefile
ADDED
data/bin/chulai
ADDED
data/chulai.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'chulai/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "chulai"
|
8
|
+
spec.version = Chulai::VERSION
|
9
|
+
spec.authors = ["Dong Qingshan"]
|
10
|
+
spec.email = ["dongqs@gmail.com"]
|
11
|
+
spec.summary = %q{Rails PaaS}
|
12
|
+
spec.description = %q{One click Rails deployment}
|
13
|
+
spec.homepage = "https://github.com/dongqs/chulai"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "thor", "~> 0.19"
|
22
|
+
spec.add_dependency "rest-client", "~> 1.7"
|
23
|
+
spec.add_dependency "sshkey", "~> 1.6"
|
24
|
+
spec.add_dependency "net-ssh", "~> 2.9"
|
25
|
+
spec.add_dependency "git", "~> 1.2"
|
26
|
+
spec.add_dependency "gemnasium-parser", "~> 0.1"
|
27
|
+
spec.add_dependency "launchy", "~> 2.4"
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
30
|
+
spec.add_development_dependency "rake", "~> 10.3"
|
31
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
32
|
+
spec.add_development_dependency "webmock", "~> 1.18"
|
33
|
+
spec.add_development_dependency "guard-rspec", "~> 4.3"
|
34
|
+
spec.add_development_dependency "guard-cucumber", "~> 1.4"
|
35
|
+
end
|
data/design
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
check account
|
2
|
+
if check auth_token / username
|
3
|
+
check user status
|
4
|
+
else
|
5
|
+
sign in / sign up
|
6
|
+
|
7
|
+
check ssh
|
8
|
+
check or write ssh config
|
9
|
+
if check ssh key
|
10
|
+
check key on server
|
11
|
+
else
|
12
|
+
generate ssh key
|
13
|
+
upload ssh key
|
14
|
+
|
15
|
+
check project
|
16
|
+
check git
|
17
|
+
init
|
18
|
+
commited
|
19
|
+
on master
|
20
|
+
check Gemfile
|
21
|
+
rails
|
22
|
+
required gems
|
23
|
+
check bundle installed
|
24
|
+
if check project chulaied
|
25
|
+
create or import
|
26
|
+
check status
|
27
|
+
git push
|
28
|
+
deploy
|
29
|
+
|
30
|
+
utilities
|
31
|
+
push
|
32
|
+
build
|
33
|
+
migrate
|
34
|
+
rename
|
35
|
+
log
|
data/lib/chulai/base.rb
ADDED
@@ -0,0 +1,249 @@
|
|
1
|
+
module Chulai
|
2
|
+
|
3
|
+
class Base
|
4
|
+
|
5
|
+
attr_reader :identity, :token
|
6
|
+
|
7
|
+
API_BASE_URL = "http://wo.chulai.la"
|
8
|
+
GIT_ROOT = "git.chulai.la"
|
9
|
+
SSH_KEY = "chulai"
|
10
|
+
SUFFIX = "chulai.la"
|
11
|
+
|
12
|
+
def initialize root = '.'
|
13
|
+
@root = root
|
14
|
+
rescue => e
|
15
|
+
puts "Error: #{e.inspect}"
|
16
|
+
exit
|
17
|
+
end
|
18
|
+
|
19
|
+
def account
|
20
|
+
if Git.global_config.keys.include? 'chulai.token'
|
21
|
+
account_check
|
22
|
+
else
|
23
|
+
account_sign_in
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def auth_token
|
28
|
+
if @auth_token
|
29
|
+
@auth_token
|
30
|
+
else
|
31
|
+
account
|
32
|
+
end
|
33
|
+
@auth_token
|
34
|
+
end
|
35
|
+
|
36
|
+
def git
|
37
|
+
return @git if @git
|
38
|
+
@git = Git.open @root#, log: Logger.new(STDOUT)
|
39
|
+
unless @git.log.first.to_s == @git.branches[:master].gcommit.log.first.to_s
|
40
|
+
puts "Error: please checkout to master branch first"
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
@git
|
44
|
+
rescue => e
|
45
|
+
puts "Error: git not initailzed"
|
46
|
+
exit
|
47
|
+
end
|
48
|
+
|
49
|
+
def account_check
|
50
|
+
puts "checking account"
|
51
|
+
@auth_token = Git.global_config 'chulai.token'
|
52
|
+
res = http_without_auth :post, "/account_check.json", auth_token: @auth_token
|
53
|
+
@username = res["username"]
|
54
|
+
if res["status"] == 'success'
|
55
|
+
[@username, @auth_token]
|
56
|
+
else
|
57
|
+
puts "error: #{res["message"]}"
|
58
|
+
exit
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def account_sign_in
|
63
|
+
puts "please sign in"
|
64
|
+
print "email: "
|
65
|
+
email = $stdin.gets.chomp
|
66
|
+
print "password: "
|
67
|
+
password = STDIN.noecho(&:gets).chomp
|
68
|
+
puts
|
69
|
+
|
70
|
+
res = http_without_auth :post, "/account_sign_in.json", user: {
|
71
|
+
email: email,
|
72
|
+
password: password
|
73
|
+
}
|
74
|
+
if res["status"] == 'success'
|
75
|
+
@username = res["username"]
|
76
|
+
@auth_token = res["auth_token"]
|
77
|
+
Git.global_config 'chulai.token', @auth_token
|
78
|
+
else
|
79
|
+
puts "error: #{res["message"]}"
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def ssh_key
|
84
|
+
puts "checking ssh key"
|
85
|
+
key_dir = File.expand_path "~/.ssh"
|
86
|
+
Dir.mkdir key_dir unless Dir.exist? key_dir
|
87
|
+
key_path = File.join key_dir, SSH_KEY
|
88
|
+
key = SSHKey.new File.read key_path
|
89
|
+
rescue => e
|
90
|
+
puts "sshkey ~/.ssh/chulai not found, generate a new one"
|
91
|
+
key = SSHKey.generate
|
92
|
+
File.open(key_path, "w") do |f|
|
93
|
+
f.write key.private_key
|
94
|
+
f.chmod 0400
|
95
|
+
end
|
96
|
+
File.open("#{key_path}.pub", "w") do |f|
|
97
|
+
f.write key.ssh_public_key
|
98
|
+
end
|
99
|
+
res = http :post, "/keys.json", key: {name: Socket.gethostname, content: key.ssh_public_key}
|
100
|
+
end
|
101
|
+
|
102
|
+
def ssh_config
|
103
|
+
puts "checking ssh config"
|
104
|
+
config_dir = File.expand_path "~/.ssh"
|
105
|
+
Dir.mkdir config_dir unless Dir.exist? config_dir
|
106
|
+
|
107
|
+
config_path = File.join config_dir, "config"
|
108
|
+
unless File.exist?(config_path) and Net::SSH::Config.load(config_path, SSH_KEY).length > 1
|
109
|
+
File.open config_path, "a" do |f|
|
110
|
+
f.write [
|
111
|
+
"",
|
112
|
+
"Host #{SSH_KEY}",
|
113
|
+
"HostName #{GIT_ROOT}",
|
114
|
+
"User git",
|
115
|
+
"IdentityFile ~/.ssh/#{SSH_KEY}",
|
116
|
+
"",
|
117
|
+
].join("\n")
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
def gemfile
|
123
|
+
puts "checking Gemfile"
|
124
|
+
unless File.exist? 'Gemfile'
|
125
|
+
puts "Error: Gemfile not found, please make sure you are in a Rails project dir"
|
126
|
+
exit
|
127
|
+
end
|
128
|
+
@gemfile = Gemnasium::Parser::Gemfile.new File.read("Gemfile")
|
129
|
+
@gems = @gemfile.dependencies.map(&:name)
|
130
|
+
unless @gems.include? 'rails'
|
131
|
+
puts "Error: chulai ONLY support Rails projects by now"
|
132
|
+
exit
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
def push
|
137
|
+
puts "pushing to git server"
|
138
|
+
|
139
|
+
remote = git.remote(:chulai)
|
140
|
+
if remote.url.nil?
|
141
|
+
res = http :post, "/birth.json"
|
142
|
+
|
143
|
+
raise res.inspect unless res['status'] == 'success'
|
144
|
+
@identity, @name = res["identity"], res["name"]
|
145
|
+
git.add_remote :chulai, "#{SSH_KEY}:#{@identity}.git"
|
146
|
+
git.config 'chulai.identity', @identity
|
147
|
+
git.config 'chulai.name', @name
|
148
|
+
else
|
149
|
+
@identity = git.config 'chulai.identity'
|
150
|
+
|
151
|
+
res = http :post, "/check.json", identity: @identity
|
152
|
+
|
153
|
+
raise res.inspect unless res && res['status'] == 'success'
|
154
|
+
@name = res["name"]
|
155
|
+
end
|
156
|
+
git.push(git.remote("chulai"))
|
157
|
+
rescue => exc
|
158
|
+
puts "failed to push code to git server: #{exc.to_s}"
|
159
|
+
exit
|
160
|
+
end
|
161
|
+
|
162
|
+
def deploy
|
163
|
+
puts "deploying"
|
164
|
+
|
165
|
+
stream :post, "/deploy.stream", identity: identity, commit: git.log.first.sha , comment: git.log.first.message, gems: @gems do |chunk|
|
166
|
+
puts chunk
|
167
|
+
end
|
168
|
+
rescue => exc
|
169
|
+
puts "deploy failed: #{exc.to_s}"
|
170
|
+
exit
|
171
|
+
end
|
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
|
+
def open
|
183
|
+
url = "http://#{@username}.#{@name}.#{SUFFIX}"
|
184
|
+
Launchy.open url
|
185
|
+
rescue => exc
|
186
|
+
puts "failed to launch any browser: #{exc.to_s}"
|
187
|
+
puts url
|
188
|
+
exit
|
189
|
+
end
|
190
|
+
|
191
|
+
private
|
192
|
+
|
193
|
+
|
194
|
+
METHODS = [:get, :post, :put, :patch, :delete]
|
195
|
+
|
196
|
+
def http_without_auth method, path, body = {}
|
197
|
+
raise "method #{method} not allowed" unless METHODS.include? method
|
198
|
+
|
199
|
+
# # for debug
|
200
|
+
# return {"status" => "success"}
|
201
|
+
|
202
|
+
url = "#{API_BASE_URL}#{path}"
|
203
|
+
res = RestClient.send method, url, body.to_json, content_type: :json
|
204
|
+
JSON.parse res
|
205
|
+
rescue => exc
|
206
|
+
puts "failed to #{method} #{url}\n#{exc.inspect}\nbody: #{body}\nresponse: #{res}\n"
|
207
|
+
exit
|
208
|
+
end
|
209
|
+
|
210
|
+
def http method, path, body = {}
|
211
|
+
http_without_auth method, path, body.merge({auth_token: auth_token})
|
212
|
+
end
|
213
|
+
|
214
|
+
def fake_stream method, path, body = {}
|
215
|
+
puts "*"*50 + "fake stream"
|
216
|
+
[method, "#{API_BASE_URL}#{path}", body].each do |chunk|
|
217
|
+
yield chunk
|
218
|
+
end
|
219
|
+
puts "*"*50
|
220
|
+
end
|
221
|
+
|
222
|
+
def req_factory method, uri
|
223
|
+
method = method.to_s
|
224
|
+
method[0] = method[0].upcase
|
225
|
+
eval("Net::HTTP::#{method}.new uri")
|
226
|
+
end
|
227
|
+
|
228
|
+
def stream method, path, body = {}
|
229
|
+
raise "method #{method} not allowed" unless METHODS.include? method
|
230
|
+
|
231
|
+
# # for debug
|
232
|
+
# return fake_stream method, path, body do |chunk|
|
233
|
+
# yield chunk
|
234
|
+
# end
|
235
|
+
|
236
|
+
uri = URI "#{API_BASE_URL}#{path}"
|
237
|
+
Net::HTTP.start(uri.host, uri.port, read_timeout: 150) do |http|
|
238
|
+
req = req_factory method, uri
|
239
|
+
req.body = body.merge({auth_token: auth_token}).to_json
|
240
|
+
req.content_type = "application/json"
|
241
|
+
http.request req do |res|
|
242
|
+
res.read_body do |chunk|
|
243
|
+
yield chunk
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
data/lib/chulai/cli.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'chulai'
|
3
|
+
|
4
|
+
module Chulai
|
5
|
+
|
6
|
+
class CLI < Thor
|
7
|
+
|
8
|
+
default_task :deploy
|
9
|
+
|
10
|
+
desc "deploy", "Deploy the newest version"
|
11
|
+
def deploy
|
12
|
+
base = Base.new
|
13
|
+
base.gemfile
|
14
|
+
base.account
|
15
|
+
base.ssh_key
|
16
|
+
base.ssh_config
|
17
|
+
base.push
|
18
|
+
base.deploy
|
19
|
+
base.open
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "version", "Prints the chulai's version infomation"
|
23
|
+
def version
|
24
|
+
puts "chulai #{Chulai::VERSION}"
|
25
|
+
end
|
26
|
+
map %w(-v --version) => :version
|
27
|
+
|
28
|
+
desc "status", "Prints the chulai server status"
|
29
|
+
def status
|
30
|
+
puts "chulai server #{Chulai::Base.status}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/chulai.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'chulai/version'
|
2
|
+
require 'chulai/base'
|
3
|
+
require 'rest-client'
|
4
|
+
require 'socket'
|
5
|
+
require 'logger'
|
6
|
+
require 'net/ssh'
|
7
|
+
require 'net/http'
|
8
|
+
require 'io/console'
|
9
|
+
require 'json'
|
10
|
+
require 'sshkey'
|
11
|
+
require 'git'
|
12
|
+
require 'gemnasium/parser'
|
13
|
+
require 'fileutils'
|
14
|
+
require 'launchy'
|
15
|
+
|
16
|
+
|
17
|
+
module Chulai
|
18
|
+
|
19
|
+
BASE_URL = "http://wo.chulai.la"
|
20
|
+
end
|
data/spec/chulai_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,244 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chulai
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dong Qingshan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rest-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sshkey
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.6'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: net-ssh
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.9'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.9'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: git
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.2'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: gemnasium-parser
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: launchy
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.4'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.4'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: bundler
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.6'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.6'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rake
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '10.3'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '10.3'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '3.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '3.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: webmock
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.18'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.18'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: guard-rspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '4.3'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '4.3'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: guard-cucumber
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1.4'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '1.4'
|
195
|
+
description: One click Rails deployment
|
196
|
+
email:
|
197
|
+
- dongqs@gmail.com
|
198
|
+
executables:
|
199
|
+
- chulai
|
200
|
+
extensions: []
|
201
|
+
extra_rdoc_files: []
|
202
|
+
files:
|
203
|
+
- ".gitignore"
|
204
|
+
- Gemfile
|
205
|
+
- Guardfile
|
206
|
+
- LICENSE.txt
|
207
|
+
- README.md
|
208
|
+
- Rakefile
|
209
|
+
- bin/chulai
|
210
|
+
- chulai.gemspec
|
211
|
+
- design
|
212
|
+
- lib/chulai.rb
|
213
|
+
- lib/chulai/base.rb
|
214
|
+
- lib/chulai/cli.rb
|
215
|
+
- lib/chulai/version.rb
|
216
|
+
- spec/chulai_spec.rb
|
217
|
+
- spec/spec_helper.rb
|
218
|
+
homepage: https://github.com/dongqs/chulai
|
219
|
+
licenses:
|
220
|
+
- MIT
|
221
|
+
metadata: {}
|
222
|
+
post_install_message:
|
223
|
+
rdoc_options: []
|
224
|
+
require_paths:
|
225
|
+
- lib
|
226
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
227
|
+
requirements:
|
228
|
+
- - ">="
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
231
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - ">="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
requirements: []
|
237
|
+
rubyforge_project:
|
238
|
+
rubygems_version: 2.2.2
|
239
|
+
signing_key:
|
240
|
+
specification_version: 4
|
241
|
+
summary: Rails PaaS
|
242
|
+
test_files:
|
243
|
+
- spec/chulai_spec.rb
|
244
|
+
- spec/spec_helper.rb
|