rax 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -0,0 +1,17 @@
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
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rax.gemspec
4
+ gemspec
5
+
6
+ gem 'rake'
7
+ gem 'rspec'
@@ -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.
@@ -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
@@ -0,0 +1,4 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
@@ -0,0 +1,5 @@
1
+ require "rax/version"
2
+
3
+ module Rax
4
+
5
+ end
@@ -0,0 +1,3 @@
1
+ module Rax
2
+ VERSION = "0.0.1"
3
+ end
@@ -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
@@ -0,0 +1,7 @@
1
+ require 'rax'
2
+
3
+ describe "Rax" do
4
+ it "exists" do
5
+ defined?(Rax).should eql "constant"
6
+ end
7
+ end
@@ -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
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRAwDgYDVQQDDAdjb3di
14
+ b3lkMRwwGgYKCZImiZPyLGQBGRYMdGhlZnJvbnRzaWRlMRMwEQYKCZImiZPyLGQB
15
+ GRYDbmV0MB4XDTEzMDEzMDIxMDYwNFoXDTE0MDEzMDIxMDYwNFowRTEQMA4GA1UE
16
+ AwwHY293Ym95ZDEcMBoGCgmSJomT8ixkARkWDHRoZWZyb250c2lkZTETMBEGCgmS
17
+ JomT8ixkARkWA25ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO45
18
+ CUxpETDGYXjCCy2dMg/aIrdrTqBqQW5ZrzhHxF9EkcdmWFr0z/qMz0JSpZ3pF11Z
19
+ KYaj5PaQQpjZfLPwbuiGGkuSWi+UAac//V18xo6S4lzRBjO+gpzG9f2AOzt9b+SR
20
+ Uc8UhO7QBZ5edUDxMxw9QstD+U0YBAlzsPJbHuUOqdtxXmNQCds3ZnqTgZaIpdUy
21
+ CSejtrukSmlthxFzwgMezYQhcYxmkl+Q475JUodnI6Pjc6nja/Or8Y6cEWiLgeUa
22
+ a+efcPGLDEbwJC7TGRrvk8yassMByBEJ3XueTMzeqWFd+665ptciojYo6BvIAR0N
23
+ iLwks0x567FZyS8SqTcCAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUxVgR
24
+ 5TUqf7Hd24ICb3g4FNbM7oYwCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQDdJj+NzZhiYXA56z0wzRUA/Fcf6CYqKB+RFRlPssDEcHTor5SnwdWgQof/gNLi
26
+ Qel1Om4zO0Shcp89jxaUqtvEdYVhmyfc0vycHmemKttNBT734yMrEJtF8Hhy+Dnz
27
+ 9CzixXLvgGaRH+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