cloudclone 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +51 -0
- data/lib/cloudclone/version.rb +1 -1
- metadata +8 -7
data/README.md
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
Cloudclone
|
2
|
+
==========
|
3
|
+
|
4
|
+
Library for manage multiple Heroku apps to do parallel HTTP request to certain web servers.
|
5
|
+
|
6
|
+
Current key features
|
7
|
+
--------------------
|
8
|
+
|
9
|
+
* Create Heroku instances which will be deployed with [cloudclone-server](https://github.com/visibletrap/cloudclone-server).
|
10
|
+
* Make HTTP request to any HTTP web server via those Heroku instances.
|
11
|
+
|
12
|
+
##Installation
|
13
|
+
|
14
|
+
gem install cloudclone
|
15
|
+
|
16
|
+
##Examples
|
17
|
+
|
18
|
+
require 'cloudclone'
|
19
|
+
cloudclone = Cloudclone::Client.new("heroku_username", "heroku_password")
|
20
|
+
cloud_group = cloudclone.create("group_name", 3)
|
21
|
+
cloud_group.request("http://www.google.com")
|
22
|
+
|
23
|
+
##Requirement
|
24
|
+
|
25
|
+
* [git](http://git-scm.com/)
|
26
|
+
* [Heroku](http://www.heroku.com) account with ssh key access installed.
|
27
|
+
|
28
|
+
##Short Documentation
|
29
|
+
|
30
|
+
# Create Cloundclone client instance
|
31
|
+
cloudclone = Cloudclone::Client.new(heroku_username, heroku_password)
|
32
|
+
|
33
|
+
# Create and deploy cloudclone-server to multiple Heroku apps
|
34
|
+
cloud_group = cloudclone.create(group_name, no_of_apps)
|
35
|
+
|
36
|
+
# Make multiple request to web server
|
37
|
+
cloud_group.request(url)
|
38
|
+
|
39
|
+
# Remove multiple Heroku apps
|
40
|
+
cloudclone.destroy(group_name)
|
41
|
+
cloud_group.destroy
|
42
|
+
|
43
|
+
# Array of all Cloudclone group names
|
44
|
+
group_names = cloudclone.list
|
45
|
+
|
46
|
+
# Retrieve Cloudclone group object from group name
|
47
|
+
cloud_group = cloudclone.group(group_name)
|
48
|
+
|
49
|
+
# Array of all Cloudclone group objects
|
50
|
+
cloud_groups = cloudclone.groups
|
51
|
+
|
data/lib/cloudclone/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudclone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70257834834720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70257834834720
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: webmock
|
27
|
-
requirement: &
|
27
|
+
requirement: &70257834834240 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70257834834240
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: heroku
|
38
|
-
requirement: &
|
38
|
+
requirement: &70257834833780 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70257834833780
|
47
47
|
description: Cloudclone help you easily manage tons of cloud service instances
|
48
48
|
email:
|
49
49
|
- visibletrap@gmail.com
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- .rvmrc
|
57
57
|
- Gemfile
|
58
58
|
- LICENSE
|
59
|
+
- README.md
|
59
60
|
- Rakefile
|
60
61
|
- cloudclone.gemspec
|
61
62
|
- lib/cloudclone.rb
|