rax 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +40 -0
- data/Rakefile +4 -0
- data/lib/rax.rb +5 -0
- data/lib/rax/version.rb +3 -0
- data/rax.gemspec +20 -0
- data/spec/rax_spec.rb +7 -0
- data/spec/spec_helper.rb +1 -0
- metadata +77 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1980fa925f0d473cdfde05e8d77fb64b2246ffdb
|
4
|
+
data.tar.gz: 5c0411055676784acd7a0a50c8fb657e86dca5c8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d5a0f14df1debf9f2257ec937395f6b22f3a620cbbdf9a61cd816b8265b786d4add53f9a2a8dcb8f956a85a2ee136b48ad4d2bcaa530dde5599acce7866be6cd
|
7
|
+
data.tar.gz: a02b0090cd6d440dcb22cdd5f1406b9d08d7d14aaea076190e749ff54ab831bc676d6a9799d6f7f563eb970ba6be3d87f3e6296146131882c404a9c1302b0c65
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Charles Lowell
|
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,40 @@
|
|
1
|
+
# Rax: lift heavy things with ease inside your Rackspace
|
2
|
+
|
3
|
+
Rax is a command line interface and API to rackspace. You can use it
|
4
|
+
to easily build and manage infrastructure for great good.
|
5
|
+
|
6
|
+
|
7
|
+
## Usage
|
8
|
+
|
9
|
+
Authenticate with rackspace
|
10
|
+
|
11
|
+
rackspace login
|
12
|
+
username: joe
|
13
|
+
password: ****
|
14
|
+
logged in, credentials written to ~/.netrc
|
15
|
+
|
16
|
+
|
17
|
+
Create the server:
|
18
|
+
|
19
|
+
rackspace create server
|
20
|
+
created server:divine-reef
|
21
|
+
id: 52415800-8b69-11e0-9b19-734f565bc83b, hostId: e4d909c290d0fb1ca068ffaddf22cbd0, ip: 67.23.10.138, image: CentOS 5.2
|
22
|
+
|
23
|
+
Create the database:
|
24
|
+
|
25
|
+
rackspace create databaseinstance #=> POST databaseintsances
|
26
|
+
created databaseinstance:little-fork
|
27
|
+
id: 623, username: 'username', password: 'password', databases: production
|
28
|
+
|
29
|
+
In order to allow for a multilpe server nodes, and the ability to
|
30
|
+
bring up new server nodes without changing the public IP of our
|
31
|
+
application, we'll create a load balancer to handle traffic, and then
|
32
|
+
add our server to it:
|
33
|
+
|
34
|
+
rackspace create loadbalancer #=> POST loadbalancers
|
35
|
+
created loadbalancer:tranquil-snowflake
|
36
|
+
id: 220, port: 80, protocol: http, algorithm: random, virtualIps: 10.1.1.1, fd24:f480:ce44:91bc:1af2:15ff:0000:0005
|
37
|
+
|
38
|
+
rackspace create node on loadbalancer:tranquil-snowflake
|
39
|
+
created node loadbalancer:tranquil-snowflake
|
40
|
+
id: 410, address: 67.23.10.138, port: 3000, condition: ENABLED, status: ONLINE, weight: 10, type: PRIMARY
|
data/Rakefile
ADDED
data/lib/rax/version.rb
ADDED
data/rax.gemspec
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rax/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rax"
|
8
|
+
spec.version = Rax::VERSION
|
9
|
+
spec.authors = ["Charles Lowell"]
|
10
|
+
spec.email = ["cowboyd@thefrontside.net"]
|
11
|
+
spec.description = %q{Lift heavy things inside your Rackspace}
|
12
|
+
spec.summary = %q{CLI and API for managing Rackspace infrastructure}
|
13
|
+
spec.homepage = "https://github.com/cowboyd/rax"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
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
|
+
end
|
data/spec/rax_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'rax'
|
metadata
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rax
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Charles Lowell
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11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GaRH+mf3M0+l+zIDJJr2L+39L8cyTSSRnp/srfI8aSmJKhGshudBKoC
|
28
|
+
Ty6Gi071pwoJXvdMaE/6iPy7bUzlndYdHyYuWSKaO9N47HqQ62oEnBraglw6ghoi
|
29
|
+
UgImJlChAzCoDP9zi9tdm6jAr7ttF25R9PPYr11ILb7dYe3qUzlNlM6zJx/nb31b
|
30
|
+
IhdyRVup4qLcqYSTPsm6u7VA
|
31
|
+
-----END CERTIFICATE-----
|
32
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
33
|
+
dependencies: []
|
34
|
+
description: Lift heavy things inside your Rackspace
|
35
|
+
email:
|
36
|
+
- cowboyd@thefrontside.net
|
37
|
+
executables: []
|
38
|
+
extensions: []
|
39
|
+
extra_rdoc_files: []
|
40
|
+
files:
|
41
|
+
- .gitignore
|
42
|
+
- Gemfile
|
43
|
+
- LICENSE.txt
|
44
|
+
- README.md
|
45
|
+
- Rakefile
|
46
|
+
- lib/rax.rb
|
47
|
+
- lib/rax/version.rb
|
48
|
+
- rax.gemspec
|
49
|
+
- spec/rax_spec.rb
|
50
|
+
- spec/spec_helper.rb
|
51
|
+
homepage: https://github.com/cowboyd/rax
|
52
|
+
licenses:
|
53
|
+
- MIT
|
54
|
+
metadata: {}
|
55
|
+
post_install_message:
|
56
|
+
rdoc_options: []
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
requirements: []
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 2.0.0
|
72
|
+
signing_key:
|
73
|
+
specification_version: 4
|
74
|
+
summary: CLI and API for managing Rackspace infrastructure
|
75
|
+
test_files:
|
76
|
+
- spec/rax_spec.rb
|
77
|
+
- spec/spec_helper.rb
|