rumm 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -14
  3. data/app/help/attach_volume.txt +15 -0
  4. data/app/help/create_container.txt +14 -0
  5. data/app/help/create_database.txt +15 -0
  6. data/app/help/create_dbinstance.txt +15 -0
  7. data/app/help/create_loadbalancer.txt +52 -0
  8. data/app/help/create_node.txt +14 -0
  9. data/app/help/create_server.txt +28 -0
  10. data/app/help/create_user.txt +20 -0
  11. data/app/help/create_volume.txt +14 -0
  12. data/app/help/destroy_container.txt +14 -0
  13. data/app/help/destroy_database.txt +15 -0
  14. data/app/help/destroy_dbinstance.txt +14 -0
  15. data/app/help/destroy_file.txt +15 -0
  16. data/app/help/destroy_loadbalancer.txt +14 -0
  17. data/app/help/destroy_node.txt +15 -0
  18. data/app/help/destroy_server.txt +14 -0
  19. data/app/help/destroy_volume.txt +14 -0
  20. data/app/help/detach_volume.txt +15 -0
  21. data/app/help/login.txt +18 -0
  22. data/app/help/logout.txt +15 -0
  23. data/app/help/railsify_server.txt +17 -0
  24. data/app/help/routes.rb +75 -0
  25. data/app/help/show_attachments.txt +14 -0
  26. data/app/help/show_container.txt +14 -0
  27. data/app/help/show_containers.txt +14 -0
  28. data/app/help/show_database.txt +15 -0
  29. data/app/help/show_databases.txt +14 -0
  30. data/app/help/show_dbinstance.txt +14 -0
  31. data/app/help/show_dbinstances.txt +14 -0
  32. data/app/help/show_file.txt +15 -0
  33. data/app/help/show_files.txt +14 -0
  34. data/app/help/show_images.txt +15 -0
  35. data/app/help/show_loadbalancer.txt +14 -0
  36. data/app/help/show_loadbalancers.txt +14 -0
  37. data/app/help/show_node.txt +15 -0
  38. data/app/help/show_nodes_on_loadbalancer.txt +14 -0
  39. data/app/help/show_server.txt +14 -0
  40. data/app/help/show_servers.txt +15 -0
  41. data/app/help/show_users.txt +15 -0
  42. data/app/help/show_volume.txt +14 -0
  43. data/app/help/show_volumes.txt +14 -0
  44. data/app/help/ssh.txt +14 -0
  45. data/app/routes.rb +5 -0
  46. data/lib/rumm/version.rb +1 -1
  47. metadata +43 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73f05b7dba53efc1d62e75fd8ff0224b3034cb5c
4
- data.tar.gz: c5ef91a9e6b14627d6e997f38f4fe398e770a584
3
+ metadata.gz: 7102b0b6ea9d8d8d0dea5ed15221e0e7461c9ce5
4
+ data.tar.gz: fbdadd6fe47bf24a66000317e1f209712adf2dab
5
5
  SHA512:
6
- metadata.gz: 9ce06dfe168410c15a38b271bf742f188bde35aec4e225a7f410eb36a180f0e5b1144bab216d7e32071a8599f2806c5b234155a729ea16b083cde2d040df6084
7
- data.tar.gz: 173f31f35133fec8e64fdf600e0ffe304e941584fa5c110cd9239a9330ed3bd8292b9bcf3c3b61155069e4520f4838b2d93a7fecd7dee74c76e307a816452e9d
6
+ metadata.gz: 153806f86bb1b957cc23baeba4c9d11c2d132eb349e77b77118da6a91bc1d557a490fb7386e375941a49111264bc0f61cd033c96a6bb1248a92febbb1d30b46e
7
+ data.tar.gz: 06026988c17ac05a48bdf9e2b3c09b5cde6041e2c3d2fa3dcc39673dbaf4850bd1d929b5a26b4994decad195864fc937618dc10f8c0a1e72596a70f0c8b941da
data/README.md CHANGED
@@ -31,21 +31,12 @@ Create the server:
31
31
  created server divine-reef
32
32
  id: 52415800-8b69-11e0-9b19-734f565bc83b, hostId: e4d909c290d0fb1ca068ffaddf22cbd0, ip: 67.23.10.138, image: CentOS 5.2
33
33
 
34
- Create the database:
34
+ For further help, including a full listing of commands, type:
35
35
 
36
- rumm create databaseinstance #=> POST databaseintsances
37
- created databaseinstance little-fork
38
- id: 623, username: 'username', password: 'password', databases: production
36
+ rumm help
39
37
 
40
- In order to allow for a multilpe server nodes, and the ability to
41
- bring up new server nodes without changing the public IP of our
42
- application, we'll create a load balancer to handle traffic, and then
43
- add our server to it:
38
+ ## Further Reading
44
39
 
45
- rumm create loadbalancer #=> POST loadbalancers
46
- created loadbalancer tranquil-snowflake
47
- id: 220, port: 80, protocol: http, algorithm: random, virtualIps: 10.1.1.1, fd24:f480:ce44:91bc:1af2:15ff:0000:0005
40
+ See the [official rumm website][1] for more information, including documentation.
48
41
 
49
- rumm create node on loadbalancer tranquil-snowflake
50
- created node loadbalancer:tranquil-snowflake
51
- id: 410, address: 67.23.10.138, port: 3000, condition: ENABLED, status: ONLINE, weight: 10, type: PRIMARY
42
+ [1]: http://rackerlabs.github.io/rumm
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm attach volume ID to server SERVER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # The name of the volume to be attached
9
+ SERVER_ID: STRING # The name of the server the volume is to be attached to
10
+
11
+ Description:
12
+ Attaches the specified volume to the named server.
13
+
14
+ Examples:
15
+ rumm attach volume colorful-caterpillar to server superordinate-struthioniformes
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm create container
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Creates a new container.
12
+
13
+ Examples:
14
+ rumm create container
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm create database on dbinstance INSTANCE_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ INSTANCE_ID: STRING # Name of the DB instance on which to create the database
9
+
10
+ Description:
11
+ Creates a new database on the specified DB instance. The name of the
12
+ database will be automatically generated.
13
+
14
+ Examples:
15
+ rumm create database on dbinstance departmental-ichthyologist
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm create dbinstance
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Creates a new DB instance. A name for the DB instance will be
12
+ automatically generated.
13
+
14
+ Examples:
15
+ rumm create dbinstance
@@ -0,0 +1,52 @@
1
+ Usage:
2
+ rumm create loadbalancer [--name STRING] [--port INTEGER] [--protocol STRING] [--virtual-ip TYPE][...] --node HOST:PORT:TYPE:CONDITION[...]
3
+
4
+ Options:
5
+ --name # The name of the load balancer
6
+ --port # The port of the load balancer
7
+ --protocol # The protocol to be used
8
+ --virtual-ip # Virtual IP type
9
+ --node # A node for the load balaner
10
+ # node arguments: host, port, type, condition
11
+
12
+ Arguments:
13
+ none
14
+
15
+ Description:
16
+ Creates a new load balancer. If the load balancer is not named, a name will
17
+ be generated automatically. The default port is 80, and the default
18
+ protocol is HTTP.
19
+
20
+ The following protocols are available (HTTP is default):
21
+
22
+ DNS_TCP
23
+ DNS_UDP
24
+ FTP
25
+ HTTP
26
+ HTTPS
27
+ IMAPS
28
+ IMAPv2
29
+ IMAPv3
30
+ IMAPv4
31
+ LDAP
32
+ LDAPS
33
+ MYSQL
34
+ POP3
35
+ POP3S
36
+ SFTP
37
+ SMTP
38
+ TCP
39
+ TCP_CLIENT_FIRST
40
+ UDP
41
+ UDP_STREAM
42
+
43
+ The available virtual IP types are PUBLIC (default) and SERVICENET.
44
+
45
+ Each node must be of a type primary (default) or secondary.
46
+
47
+ Each node must have a condition specified - enabled (default) or disabled.
48
+
49
+ Examples:
50
+ rumm create loadbalancer --node 10.0.0.1:80
51
+ rumm create loadbalancer --node 166.78.114.25:80 --node 166.78.111.23:80 --node 198.61.239.55:80
52
+ rumm create loadbalancer --name search-balancer --port 8080 --protocol HTTP --virtual-ip PUBLIC --virtual-ip SERVICENET --node google.com:80:primary:enabled --node bing.com:80:secondary:disabled
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm create node on loadbalancer LOADBALANCER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ LOADBALANCER_ID: STRING # Name of the loadbalancer that contains the node requested
9
+
10
+ Description:
11
+ Creates a new node on the named load balancer.
12
+
13
+ Examples:
14
+ rumm create node on loadbalancer LOADBALANCER_ID
@@ -0,0 +1,28 @@
1
+ Usage:
2
+ rumm create server [--name STRING] [--image-id STRING] [--flavor-id STRING]
3
+
4
+ Options:
5
+ -n, --name STRING # Name to give the new server
6
+ -i, --image-id STRING # Use this VM image
7
+ -f, --flavor-id STRING # Create with the specified flavor
8
+ --private-key-path STRING # Path to your private ssh key
9
+ --public-key-path STRING # Path to your public ssh key
10
+
11
+ Arguments:
12
+ none
13
+
14
+ Description:
15
+ Creates a new server. If a name is not provided, one will be generated
16
+ automatically. If you want to base the server on an existing image, you
17
+ will need to specify the image id. Similarly, a flavor id can be
18
+ specified. The default is a 512MB sever running Ubuntu 12.04 LTS. This
19
+ command will take a few minutes.
20
+
21
+ rumm assumes that your ssh keys are at ~/.ssh/id_rsa.pub and
22
+ ~/.ssh/id_rsa. If that is not the case, you will need to specify the path
23
+ to your keys with the public-key-path and private-key-path options.
24
+
25
+ Examples:
26
+ rumm create server
27
+ rumm create server --name rumm-example-server
28
+ rumm create server --image-id 9922a7c7-5a42-4a56-bc61-93f857ae2346 --flavor-id 3
@@ -0,0 +1,20 @@
1
+ Usage:
2
+ rumm create user on dbinstance DBINSTANCE_ID --name STRING --password STRING --database STRING [--host STRING]
3
+
4
+ Options:
5
+ --name # The username for the user
6
+ --password # The user's password
7
+ --database # The database available to the user - more than one can be specified
8
+ --host # The host from which the user is allowed to connect to the DB
9
+
10
+ Arguments:
11
+ DBINSTANCE_ID: STRING # Name of the DB instance on which the user should be created
12
+
13
+ Description:
14
+ Creates a new user on the specified DB instance. The name, password and
15
+ database options are required. If a host is specified, it must be either
16
+ an IPv4 address or "%" (to allow any host). If no host is specified, it
17
+ defaults to "%".
18
+
19
+ Examples:
20
+ rumm create user on dbinstance departmental-ichthyologist --name you --password secret --database different-boycott
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm create volume
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Creates a new volume. A name will be auto-generated.
12
+
13
+ Examples:
14
+ rumm create volume
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm destroy container ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the container to destroy.
9
+
10
+ Description:
11
+ Destroys the specified container.
12
+
13
+ Examples:
14
+ rumm destroy container blockish-adversary
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm destroy database ID on dbinstance INSTANCE_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the database to destroy
9
+ INSTANCE_ID: STRING # Name of the DB instance on which the database can be found
10
+
11
+ Description:
12
+ Destroys the specified database.
13
+
14
+ Examples:
15
+ rumm destroy database dualistic-bryan on dbinstance departmental-ichthyologist
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm destroy dbinstance ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Destroys the specified DB instance.
12
+
13
+ Examples:
14
+ rumm destroy dbinstance drum-shaped-inerrancy
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm destroy file ID in container CONTAINER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # ID of the file to destroy
9
+ CONTAINER_ID: STRING # Name of the container that holds the file
10
+
11
+ Description:
12
+ Destroys the specified file.
13
+
14
+ Examples:
15
+ rumm destroy file defaults.txt in container dragging-ceratopogon
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm destroy loadbalancer ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the load balancer to destroy
9
+
10
+ Description:
11
+ Destroys the specified load balancer.
12
+
13
+ Examples:
14
+ rumm destroy loadbalancer located-bruce
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm destroy node ID on loadbalancer LOADBALANCER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # ID of the node to show
9
+ LOADBALANCER_ID: STRING # Name of the loadbalancer that contains the node requested
10
+
11
+ Description:
12
+ Destroys a the specified node for the named load balancer.
13
+
14
+ Examples:
15
+ rumm destroy node 390579 on loadbalancer loam7-bradypodidae
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm destroy server ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the server to destroy
9
+
10
+ Description:
11
+ This command will send a request to destroy the named server.
12
+
13
+ Examples:
14
+ rumm destroy server purple-bookcase
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm destroy volume ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # The name of the volume to destroy
9
+
10
+ Description:
11
+ Destroys the specified volume.
12
+
13
+ Examples:
14
+ rumm destroy volume postbiblical-vacancy
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm detach volume ID from server SERVER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # The name of the volume to be attached
9
+ SERVER_ID: STRING # The name of the server the volume is to be detached from
10
+
11
+ Description:
12
+ Detaches the specified volume from the named server.
13
+
14
+ Examples:
15
+ rumm detach volume colorful-caterpillar from server superordinate-struthioniformes
@@ -0,0 +1,18 @@
1
+ Usage:
2
+ rumm login
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Logs the user into a Rackspace account. You will be prompted to enter your
12
+ Rackspace username and password. The username and your Rackspace API key
13
+ (not your password) will be stored in ~/.netrc. You only need to do this
14
+ once. The Logout command can be used to remove your credentials from
15
+ ~/.netrc.
16
+
17
+ Examples:
18
+ rumm login
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm logout
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Logs the user out of the specified Rackspace account. Your username and API
12
+ key will be removed from ~/.netrc.
13
+
14
+ Examples
15
+ rumm logout
@@ -0,0 +1,17 @@
1
+ Usage:
2
+ rumm railsify server id
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the server to railsify
9
+
10
+ Description:
11
+ Railsify will install on the specified server all software required to run
12
+ a production Rails application. For details, look at the command output.
13
+ This command takes a very long time to run. In the future, this command
14
+ will be extracted into a plugin.
15
+
16
+ Examples:
17
+ rumm railsify server sorrel-shantung
@@ -0,0 +1,75 @@
1
+ require 'shellwords'
2
+
3
+ def self.help(path)
4
+ match "help #{path}" => proc {|cmd|
5
+ file_name = Shellwords.split(path).join('_')
6
+ help_text = File.expand_path("../#{file_name}.txt", __FILE__)
7
+ cmd.output << File.read(help_text)
8
+ }
9
+ end
10
+
11
+ help('login')
12
+ help('logout')
13
+
14
+ help('show images')
15
+
16
+ help('show servers')
17
+ help('show server')
18
+ help('create server')
19
+ help('update server')
20
+ help('destroy server')
21
+
22
+ help('railsify server')
23
+
24
+ help('show loadbalancers')
25
+ help('show loadbalancer')
26
+ help('create loadbalancer')
27
+ help('update loadbalancer')
28
+ help('destroy loadbalancer')
29
+
30
+ help('show nodes on loadbalancer')
31
+ help('show node on loadbalancer')
32
+ help('createnode on loadbalancer')
33
+ help('update node on loadbalancer')
34
+ help('destroy node on loadbalancer')
35
+
36
+ help('show dbinstances')
37
+ help('show dbinstance')
38
+ help('create dbinstance')
39
+ help('update dbinstance')
40
+ help('destroy dbinstance')
41
+
42
+ help('show databases on dbinstance')
43
+ help('show database on dbinstance')
44
+ help('create database on dbinstance')
45
+ help('update database on dbinstance')
46
+ help('destroy database on dbinstance')
47
+
48
+ help('show users on dbinstance')
49
+ help('show user on dbinstance')
50
+ help('create user on dbinstance')
51
+
52
+ help('ssh')
53
+
54
+ help('show containers')
55
+ help('show container')
56
+ help('create container')
57
+ help('update container')
58
+ help('destroy container')
59
+
60
+ help('show files in container')
61
+ help('show file in container')
62
+ help('create file in container')
63
+ help('update file in container')
64
+ help('destroy file in container')
65
+ help('download file in container')
66
+
67
+ help('show volumes')
68
+ help('show volume')
69
+ help('create volume')
70
+ help('update volume')
71
+ help('destroy volume')
72
+
73
+ help('show attachments on server')
74
+ help('attach volume to server')
75
+ help('detach volume from server')
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show attachments on server SERVER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ SERVER_ID: STRING # The server whose attachments are to be shown
9
+
10
+ Description:
11
+ Shows the attached volumes for the named server.
12
+
13
+ Examples:
14
+ rumm show attachments on server superordinate-struthioniformes
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show container ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the container to show.
9
+
10
+ Description:
11
+ Shows the specified container.
12
+
13
+ Examples:
14
+ rumm show container reducible-upkeep
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show containers
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Shows a list of containers in the active Rackspace account.
12
+
13
+ Examples:
14
+ rumm show containers
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm show database ID on dbinstance INSTANCE_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the database to show
9
+ INSTANCE_ID: STRING # Name of the DB instance on which the database can be found
10
+
11
+ Description:
12
+ Shows the specified database.
13
+
14
+ Examples:
15
+ rumm show database different-boycott on dbinstance departmental-ichthyologist
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show databases on dbinstance INSTANCE_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ INSTANCE_ID: STRING # Name of the DB instance on which the databases can be found
9
+
10
+ Description:
11
+ Shows a list of databases that reside on the given DB intance.
12
+
13
+ Examples:
14
+ rumm show databases on dbinstance departmental-ichthyologist
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show dbinstance ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the DB instance to show
9
+
10
+ Description:
11
+ Shows the specified DB instance.
12
+
13
+ Examples:
14
+ rumm show dbinstance
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show dbinstances
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Show a list of DB instances contained in the current Rackspace account.
12
+
13
+ Examples:
14
+ rumm show dbinstances
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm show file ID in container CONTAINER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the file to show
9
+ CONTAINER_ID: STRING # Name of the container that holds the file
10
+
11
+ Description:
12
+ Shows the specified file from the container named.
13
+
14
+ Examples:
15
+ rumm show file default.text in container dragging-ceratopogon
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show files in container CONTAINER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ CONTAINER_ID: STRING # Name of the container whose files are to be listed
9
+
10
+ Description:
11
+ Shows a list of files in the named container.
12
+
13
+ Examples:
14
+ rumm show files in container dragging-ceratopogon
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm show images
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Shows a list of all of the images available to the active Rackspace
12
+ account, both Rackspace base images and user-created snapshot images.
13
+
14
+ Examples:
15
+ rumm show images
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show loadbalancer ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the load balancer to show
9
+
10
+ Description:
11
+ Shows the specified load balancer.
12
+
13
+ Examples:
14
+ rumm show loadbalancer located-bruce
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show loadbalancers
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Shows a list of all of the load balancers in the active Rackspace account.
12
+
13
+ Examples:
14
+ rumm show loadbalancers
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm show node ID on loadbalancer LOADBALANCER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # ID of the node to show
9
+ LOADBALANCER_ID: STRING # Name of the loadbalancer that contains the node requested
10
+
11
+ Description:
12
+ Shows the specified node from the named load balancer.
13
+
14
+ Examples:
15
+ rumm show node 390579 on loadbalancer loamy-bradypodidae
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ show nodes on loadbalancer LOADBALANCER_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ LOADBALANCER_ID: STRING # The name of the load balancer that owns the nodes to be listed
9
+
10
+ Description:
11
+ Shows all the nodes on the named load balancer.
12
+
13
+ Examples:
14
+ rumm show nodes on loadbalancer loamy-bradypodidae
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show server ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the server to play
9
+
10
+ Description:
11
+ Shows the attributes of the sever with the name specified by ID.
12
+
13
+ Examples:
14
+ rumm show server sorrel-shantung
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm show servers
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Shows a list of all of the servers contained in the current user's
12
+ Rackspace account.
13
+
14
+ Examples:
15
+ rumm show servers
@@ -0,0 +1,15 @@
1
+ Usage:
2
+ rumm show users on dbinstance DBINSTANCE_ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ DBINSTANCE_ID: STRING # Name of the DB instance on which the users can be found
9
+
10
+ Description:
11
+ Shows all of the users in the specified DB instance. The databases to which
12
+ the users have access are listed after the username.
13
+
14
+ Examples:
15
+ rumm show users on dbinstance departmental-ichthyologist
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show volume ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # The name of the volume to show
9
+
10
+ Description:
11
+ Shows a volume.
12
+
13
+ Examples:
14
+ rumm show volume postbiblical-vacancy
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm show volumes
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ none
9
+
10
+ Description:
11
+ Shows all volumes in the active Rackspace account.
12
+
13
+ Examples:
14
+ rumm show volumes
data/app/help/ssh.txt ADDED
@@ -0,0 +1,14 @@
1
+ Usage:
2
+ rumm ssh ID
3
+
4
+ Options:
5
+ none
6
+
7
+ Arguments:
8
+ ID: STRING # Name of the server to log in to
9
+
10
+ Description:
11
+ This command logs into the named server as root via ssh.
12
+
13
+ Example:
14
+ rumm ssh standard-sasquatch
data/app/routes.rb CHANGED
@@ -69,3 +69,8 @@ match 'destroy volume :id' => 'volumes#destroy'
69
69
  match 'show attachments on server :server_id' => 'attachments#index'
70
70
  match 'attach volume :id to server :server_id' => 'attachments#attach'
71
71
  match 'detach volume :id from server :server_id' => 'attachments#detach'
72
+
73
+ # Stop-gap measure to load help for each rumm command
74
+ # ==========
75
+
76
+ eval File.read(File.expand_path '../help/routes.rb', __FILE__), binding, File.expand_path('../help/routes.rb', __FILE__)
data/lib/rumm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rumm
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
@@ -105,6 +105,48 @@ files:
105
105
  - app/forms/loadbalancers/create_form.rb
106
106
  - app/forms/servers/create_form.rb
107
107
  - app/forms/users/create_form.rb
108
+ - app/help/attach_volume.txt
109
+ - app/help/create_container.txt
110
+ - app/help/create_database.txt
111
+ - app/help/create_dbinstance.txt
112
+ - app/help/create_loadbalancer.txt
113
+ - app/help/create_node.txt
114
+ - app/help/create_server.txt
115
+ - app/help/create_user.txt
116
+ - app/help/create_volume.txt
117
+ - app/help/destroy_container.txt
118
+ - app/help/destroy_database.txt
119
+ - app/help/destroy_dbinstance.txt
120
+ - app/help/destroy_file.txt
121
+ - app/help/destroy_loadbalancer.txt
122
+ - app/help/destroy_node.txt
123
+ - app/help/destroy_server.txt
124
+ - app/help/destroy_volume.txt
125
+ - app/help/detach_volume.txt
126
+ - app/help/login.txt
127
+ - app/help/logout.txt
128
+ - app/help/railsify_server.txt
129
+ - app/help/routes.rb
130
+ - app/help/show_attachments.txt
131
+ - app/help/show_container.txt
132
+ - app/help/show_containers.txt
133
+ - app/help/show_database.txt
134
+ - app/help/show_databases.txt
135
+ - app/help/show_dbinstance.txt
136
+ - app/help/show_dbinstances.txt
137
+ - app/help/show_file.txt
138
+ - app/help/show_files.txt
139
+ - app/help/show_images.txt
140
+ - app/help/show_loadbalancer.txt
141
+ - app/help/show_loadbalancers.txt
142
+ - app/help/show_node.txt
143
+ - app/help/show_nodes_on_loadbalancer.txt
144
+ - app/help/show_server.txt
145
+ - app/help/show_servers.txt
146
+ - app/help/show_users.txt
147
+ - app/help/show_volume.txt
148
+ - app/help/show_volumes.txt
149
+ - app/help/ssh.txt
108
150
  - app/models/help.rb
109
151
  - app/models/loadbalancers/node.rb
110
152
  - app/providers/access_token_provider.rb