rumm 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/help_controller.rb +6 -0
- data/app/models/help.rb +3 -0
- data/app/routes.rb +3 -0
- data/app/views/help/show.txt.erb +88 -0
- data/lib/rumm/version.rb +1 -1
- data/spec/features/help_spec.rb +4 -1
- data/spec/spec_helper.rb +4 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d53e8e67da2bed3cabe9e71fde5ccad72e3af19
|
4
|
+
data.tar.gz: 4320c0bcfddb3d83d0404c41a2890352ce805438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79cb75edd91c8b0cc22d03c58b93eb17d2d543a90c49d565a3bb5fc3bfcffe479923f8c73c3a211d47b8229e68c7852b56da92f24a86f39bcc9f61be9baff90d
|
7
|
+
data.tar.gz: e173e58aeb25159840fc8ccdb5e7252b37fb2946d18f3e038f94e7411d29fcdd1c0ce5dfa0a0828be8e66b021ceab80576bb95a7841f3e6f4b7426728d8a61f6
|
data/app/models/help.rb
ADDED
data/app/routes.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
macro /(-v|--version)/ => "version"
|
2
2
|
match 'version' => proc {|cmd| cmd.output << "#{Rumm::VERSION}\n" }
|
3
3
|
|
4
|
+
macro /(-h|--help)(.*)/ => "help\\2"
|
5
|
+
match 'help' => 'help#show'
|
6
|
+
|
4
7
|
match 'login' => 'authentication#login'
|
5
8
|
match 'logout' => 'authentication#logout'
|
6
9
|
|
@@ -0,0 +1,88 @@
|
|
1
|
+
Rumm: A tasty tool for hackers and pirates
|
2
|
+
Rumm provides a command line interface for hacking with Rackspace. The
|
3
|
+
only thing you'll need to get started is a username and password from
|
4
|
+
your Rackspace hosting account. e.g.
|
5
|
+
|
6
|
+
rumm login
|
7
|
+
Username: rsteveson
|
8
|
+
Password: ******
|
9
|
+
logged in as rstevenson, credentials written to ~/.netrc
|
10
|
+
|
11
|
+
And you're good to go! The following commands are available in your Rumm
|
12
|
+
environment:
|
13
|
+
|
14
|
+
Authentication:
|
15
|
+
rumm login
|
16
|
+
rumm logout
|
17
|
+
|
18
|
+
Images:
|
19
|
+
rumm show images
|
20
|
+
rumm show images
|
21
|
+
|
22
|
+
Servers:
|
23
|
+
rumm show servers
|
24
|
+
rumm show server :id
|
25
|
+
rumm create server
|
26
|
+
rumm update server :id
|
27
|
+
rumm destroy server :id
|
28
|
+
rumm ssh :id
|
29
|
+
|
30
|
+
Loadbalancers:
|
31
|
+
rumm show loadbalancers
|
32
|
+
rumm show loadbalancer :id
|
33
|
+
rumm create loadbalancer
|
34
|
+
rumm update loadbalancer :id
|
35
|
+
rumm destroy loadbalancer :id
|
36
|
+
|
37
|
+
Nodes:
|
38
|
+
rumm show nodes on loadbalancer :loadbalancer_id
|
39
|
+
rumm show node :id on loadbalancer :loadbalancer_id
|
40
|
+
rumm create node on loadbalancer :loadbalancer_id
|
41
|
+
rumm update node :id on loadbalancer :loadbalancer_id
|
42
|
+
rumm destroy node :id on loadbalancer :loadbalancer_id
|
43
|
+
|
44
|
+
Dbinstances:
|
45
|
+
rumm show dbinstances
|
46
|
+
rumm show dbinstance :id
|
47
|
+
rumm create dbinstance
|
48
|
+
rumm update dbinstance :id
|
49
|
+
rumm destroy dbinstance :id
|
50
|
+
|
51
|
+
Databases:
|
52
|
+
rumm show databases on dbinstance :instance_id
|
53
|
+
rumm show database :id on dbinstance :instance_id
|
54
|
+
rumm create database on dbinstance :instance_id
|
55
|
+
rumm update database :id on dbinstance :instance_id
|
56
|
+
rumm destroy database :id on dbinstance :instance_id
|
57
|
+
|
58
|
+
Users:
|
59
|
+
rumm show users on dbinstance :dbinstance_id
|
60
|
+
rumm show user :id on dbinstance :dbinstance_id
|
61
|
+
rumm create user on dbinstance :dbinstance_id
|
62
|
+
|
63
|
+
Containers:
|
64
|
+
rumm show containers
|
65
|
+
rumm show container :id
|
66
|
+
rumm create container
|
67
|
+
rumm update container :id
|
68
|
+
rumm destroy container :id
|
69
|
+
|
70
|
+
Files:
|
71
|
+
rumm show files in container :container_id
|
72
|
+
rumm show file :id on container :container_id
|
73
|
+
rumm create file :id on container :container_id
|
74
|
+
rumm update file :id on container :container_id
|
75
|
+
rumm destroy file :id on container :container_id
|
76
|
+
rumm download file :id on container :container_id
|
77
|
+
|
78
|
+
Volumes:
|
79
|
+
rumm show volumes
|
80
|
+
rumm show volume :id
|
81
|
+
rumm create volume
|
82
|
+
rumm update volume :id
|
83
|
+
rumm destroy volume :id
|
84
|
+
|
85
|
+
Attachments:
|
86
|
+
rumm show attachments on server :server_id
|
87
|
+
rumm attach volume :id to server :server_id
|
88
|
+
rumm detach volume :id from server :server_id
|
data/lib/rumm/version.rb
CHANGED
data/spec/features/help_spec.rb
CHANGED
@@ -3,8 +3,8 @@ require "spec_helper"
|
|
3
3
|
describe "interactive learning" do
|
4
4
|
use_natural_assertions
|
5
5
|
describe "the basic help system" do
|
6
|
-
Given { pending }
|
7
6
|
Given {rumm "help"}
|
7
|
+
Then { stdout.match "Rumm: A tasty tool for hackers and pirates" }
|
8
8
|
|
9
9
|
# Rumm: A tasty tool for hackers and pirates
|
10
10
|
# Rumm provides a command line interface for hacking with Rackspace. The
|
@@ -97,7 +97,10 @@ describe "interactive learning" do
|
|
97
97
|
|
98
98
|
#
|
99
99
|
#> With aggretate help topic per controller e.g. one listing for all server commands
|
100
|
+
end
|
100
101
|
|
102
|
+
describe "help in a group" do
|
103
|
+
Given { pending }
|
101
104
|
Given {rumm "help servers"}
|
102
105
|
# Description:
|
103
106
|
# Rumm allows you to manipulate all of your cloud servers from the command line
|
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Lowell
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- app/controllers/containers_controller.rb
|
94
94
|
- app/controllers/databases_controller.rb
|
95
95
|
- app/controllers/files_controller.rb
|
96
|
+
- app/controllers/help_controller.rb
|
96
97
|
- app/controllers/images_controller.rb
|
97
98
|
- app/controllers/instances_controller.rb
|
98
99
|
- app/controllers/loadbalancers_controller.rb
|
@@ -103,6 +104,7 @@ files:
|
|
103
104
|
- app/forms/loadbalancers/create_form.rb
|
104
105
|
- app/forms/servers/create_form.rb
|
105
106
|
- app/forms/users/create_form.rb
|
107
|
+
- app/models/help.rb
|
106
108
|
- app/models/loadbalancers/node.rb
|
107
109
|
- app/models/node.rb
|
108
110
|
- app/providers/compute_provider.rb
|
@@ -139,6 +141,7 @@ files:
|
|
139
141
|
- app/views/files/download.txt.erb
|
140
142
|
- app/views/files/index.txt.erb
|
141
143
|
- app/views/files/show.txt.erb
|
144
|
+
- app/views/help/show.txt.erb
|
142
145
|
- app/views/images/index.txt.erb
|
143
146
|
- app/views/instances/create.txt.erb
|
144
147
|
- app/views/instances/destroy.txt.erb
|