rumm 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7ac9ec491eb0b33631712e675dfb4e4a4e43975
4
- data.tar.gz: 2848421a254cfb4625ab4a7cec6614998e3064a8
3
+ metadata.gz: 0d53e8e67da2bed3cabe9e71fde5ccad72e3af19
4
+ data.tar.gz: 4320c0bcfddb3d83d0404c41a2890352ce805438
5
5
  SHA512:
6
- metadata.gz: 0f87f5b3ffa58f7cb243239919e3424b6844667e35b3a02c4f445ec2a6d356dfc482bf55f8cd32eb1723cdba47ea70302861243d336bfe710faec0fffb9d036b
7
- data.tar.gz: 04de516869d271586eb50a8095f71daf38f379c13c31900439f87b4fad4124452c34643d5cce9e0257b3e59a71159cc95cfeb1df58d0e6d021db642f8e7c336a
6
+ metadata.gz: 79cb75edd91c8b0cc22d03c58b93eb17d2d543a90c49d565a3bb5fc3bfcffe479923f8c73c3a211d47b8229e68c7852b56da92f24a86f39bcc9f61be9baff90d
7
+ data.tar.gz: e173e58aeb25159840fc8ccdb5e7252b37fb2946d18f3e038f94e7411d29fcdd1c0ce5dfa0a0828be8e66b021ceab80576bb95a7841f3e6f4b7426728d8a61f6
@@ -0,0 +1,6 @@
1
+ class HelpController < MVCLI::Controller
2
+
3
+ def show
4
+ Help.new
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ class Help
2
+
3
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Rumm
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -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
@@ -16,6 +16,10 @@ module Rumm::SpecHelper
16
16
  def stderr
17
17
  all_stderr
18
18
  end
19
+
20
+ def stdout
21
+ all_stdout
22
+ end
19
23
  end
20
24
 
21
25
  RSpec.configure do |config|
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.12
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