cloulu 0.3.0 → 0.5.0
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 +8 -8
- data/config/clients.yml +17 -0
- data/helper-app/Gemfile +10 -0
- data/helper-app/Gemfile.lock +48 -0
- data/helper-app/server.rb +43 -0
- data/lib/vmc/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ODdkYTgxMDI3OTIwYTE0OTljNDEzMDRkZThjMjAzNmY2OWYyZGQ2Ng==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NjA0MmMxNWY1NDY1YmFkYmI1NzU4M2JlYjMwNjQ4NzNlMWIxNDVmYQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MjViYzgwZWFkM2QyNzQ4MGI2MTI4Y2ViZDliNWZlOTU2YjdkMmMwMjZiMDdj
|
|
10
|
+
ZjRhZWI2MDVmZjJiMzIzYTY5ZDFjY2U0ZWE1MjU4M2QyNDJjNGEzYTY1MjFh
|
|
11
|
+
NjgwZDQ2ZDc3OTM2ZmViY2Y5MDczOWU5NzdlMzAwYWM5ZmYwOGU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
N2FlYmVmNzY1YTAwMTZiNmE3NzNiZjliOThmNmNkNDVhOTE4MWIzY2U3YTA3
|
|
14
|
+
MTljNDEyNzRlOGRmNDNlZjgyMGM5YTM5OGY0ZDNhOTZiYzU1YmQwOWZmMTE2
|
|
15
|
+
ZGIzMzRiYTBkYmJmMDc4ZjU0NTczMGY5ZDk4ZWNiZmMxMDI1Mzg=
|
data/config/clients.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
redis:
|
|
2
|
+
redis-cli: -h ${host} -p ${port} -a ${password}
|
|
3
|
+
|
|
4
|
+
mysql:
|
|
5
|
+
mysql: --protocol=TCP --host=${host} --port=${port} --user=${user} --password=${password} ${name}
|
|
6
|
+
mysqldump: --protocol=TCP --host=${host} --port=${port} --user=${user} --password=${password} ${name} > ${ask Output file}
|
|
7
|
+
|
|
8
|
+
mongodb:
|
|
9
|
+
mongo: --host ${host} --port ${port} -u ${user} -p ${password} ${name}
|
|
10
|
+
mongodump: --host ${host} --port ${port} -u ${user} -p ${password} --db ${name}
|
|
11
|
+
mongorestore: --host ${host} --port ${port} -u ${user} -p ${password} --db ${name} ${ask Directory or filename to restore from}
|
|
12
|
+
|
|
13
|
+
postgresql:
|
|
14
|
+
psql:
|
|
15
|
+
command: -h ${host} -p ${port} -d ${name} -U ${user} -w
|
|
16
|
+
environment:
|
|
17
|
+
- PGPASSWORD='${password}'
|
data/helper-app/Gemfile
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: http://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
addressable (2.2.6)
|
|
5
|
+
async_sinatra (0.5.0)
|
|
6
|
+
rack (>= 1.2.1)
|
|
7
|
+
sinatra (>= 1.0)
|
|
8
|
+
caldecott (0.0.3)
|
|
9
|
+
addressable (= 2.2.6)
|
|
10
|
+
async_sinatra (= 0.5.0)
|
|
11
|
+
em-http-request (= 0.3.0)
|
|
12
|
+
em-websocket (= 0.3.1)
|
|
13
|
+
json (= 1.6.1)
|
|
14
|
+
uuidtools (= 2.1.2)
|
|
15
|
+
daemons (1.1.8)
|
|
16
|
+
em-http-request (0.3.0)
|
|
17
|
+
addressable (>= 2.0.0)
|
|
18
|
+
escape_utils
|
|
19
|
+
eventmachine (>= 0.12.9)
|
|
20
|
+
em-websocket (0.3.1)
|
|
21
|
+
addressable (>= 2.1.1)
|
|
22
|
+
eventmachine (>= 0.12.9)
|
|
23
|
+
escape_utils (0.2.4)
|
|
24
|
+
eventmachine (0.12.10)
|
|
25
|
+
json (1.6.1)
|
|
26
|
+
rack (1.2.5)
|
|
27
|
+
sinatra (1.2.8)
|
|
28
|
+
rack (~> 1.1)
|
|
29
|
+
tilt (>= 1.2.2, < 2.0)
|
|
30
|
+
thin (1.4.1)
|
|
31
|
+
daemons (>= 1.0.9)
|
|
32
|
+
eventmachine (>= 0.12.6)
|
|
33
|
+
rack (>= 1.0.0)
|
|
34
|
+
tilt (1.3.3)
|
|
35
|
+
uuidtools (2.1.2)
|
|
36
|
+
|
|
37
|
+
PLATFORMS
|
|
38
|
+
ruby
|
|
39
|
+
|
|
40
|
+
DEPENDENCIES
|
|
41
|
+
async_sinatra
|
|
42
|
+
bundler
|
|
43
|
+
caldecott (= 0.0.3)
|
|
44
|
+
em-websocket
|
|
45
|
+
json
|
|
46
|
+
rack (~> 1.2.0)
|
|
47
|
+
thin
|
|
48
|
+
uuidtools
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Copyright (c) 2009-2011 VMware, Inc.
|
|
3
|
+
$:.unshift(File.dirname(__FILE__) + '/lib')
|
|
4
|
+
|
|
5
|
+
require 'rubygems'
|
|
6
|
+
require 'bundler/setup'
|
|
7
|
+
|
|
8
|
+
require 'caldecott'
|
|
9
|
+
require 'sinatra'
|
|
10
|
+
require 'json'
|
|
11
|
+
require 'eventmachine'
|
|
12
|
+
|
|
13
|
+
port = ENV['VMC_APP_PORT']
|
|
14
|
+
port ||= 8081
|
|
15
|
+
|
|
16
|
+
# add vcap specific stuff to Caldecott
|
|
17
|
+
class VcapHttpTunnel < Caldecott::Server::HttpTunnel
|
|
18
|
+
get '/info' do
|
|
19
|
+
{ "version" => '0.0.4' }.to_json
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.get_tunnels
|
|
23
|
+
super
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
get '/services' do
|
|
27
|
+
services_env = ENV['VMC_SERVICES']
|
|
28
|
+
return "no services env" if services_env.nil? or services_env.empty?
|
|
29
|
+
services_env
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
get '/services/:service' do |service_name|
|
|
33
|
+
services_env = ENV['VMC_SERVICES']
|
|
34
|
+
not_found if services_env.nil?
|
|
35
|
+
|
|
36
|
+
services = JSON.parse(services_env)
|
|
37
|
+
service = services.find { |s| s["name"] == service_name }
|
|
38
|
+
not_found if service.nil?
|
|
39
|
+
service["options"].to_json
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
VcapHttpTunnel.run!(:port => port, :auth_token => ENV["CALDECOTT_AUTH"])
|
data/lib/vmc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloulu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SKPlanet Cloulu Team
|
|
@@ -312,6 +312,10 @@ files:
|
|
|
312
312
|
- bin/cl
|
|
313
313
|
- vendor/errors/v1.yml
|
|
314
314
|
- vendor/errors/v2.yml
|
|
315
|
+
- config/clients.yml
|
|
316
|
+
- helper-app/Gemfile
|
|
317
|
+
- helper-app/Gemfile.lock
|
|
318
|
+
- helper-app/server.rb
|
|
315
319
|
homepage: https://cloulu.com
|
|
316
320
|
licenses: []
|
|
317
321
|
metadata: {}
|