bbcloud 0.9 → 0.9.1
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.
- data/bin/brightbox-accounts +1 -1
- data/bin/brightbox-cloudips +1 -1
- data/bin/brightbox-images +1 -1
- data/bin/brightbox-servers +1 -1
- data/bin/brightbox-types +1 -1
- data/bin/brightbox-users +1 -1
- data/bin/brightbox-zones +1 -1
- data/debian/changelog +61 -0
- data/debian/compat +1 -0
- data/debian/control +33 -0
- data/debian/copyright +19 -0
- data/debian/libbbcloud-ruby1.8.bash-completion +1 -0
- data/debian/patches/disable-rubygems-in-fog.patch +9 -0
- data/debian/patches/disable_rubygems.patch +7 -0
- data/debian/patches/series +3 -0
- data/debian/patches/vendored-gems.patch +43400 -0
- data/debian/rules +8 -0
- data/debian/source/format +1 -0
- data/lib/bbcloud/accounts.rb +2 -2
- data/lib/bbcloud/commands/images-register.rb +8 -1
- data/lib/bbcloud/commands/images-show.rb +1 -1
- data/lib/bbcloud/version.rb +1 -1
- data/tools/bash_completion_script +43 -2
- metadata +14 -2
data/debian/rules
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0
|
data/lib/bbcloud/accounts.rb
CHANGED
@@ -10,13 +10,20 @@ command [:register] do |c|
|
|
10
10
|
c.desc "Source filename of the image you uploaded to the image library"
|
11
11
|
c.flag [:s, "source"]
|
12
12
|
|
13
|
+
c.desc "This image does not support virtio so needs 'compatibility mode'"
|
14
|
+
c.switch [:c, "compatibility"]
|
15
|
+
|
16
|
+
c.desc "Image description"
|
17
|
+
c.flag [:d, "description"]
|
18
|
+
|
13
19
|
c.action do |global_options,options,args|
|
14
20
|
|
15
21
|
raise "You must specify the architecture" unless options[:a]
|
16
22
|
raise "You must specify the source filename" unless options[:s]
|
17
23
|
|
18
24
|
image = Image.register :name => options[:n], :arch => options[:a],
|
19
|
-
:source => options[:s]
|
25
|
+
:source => options[:s], :compatibility_mode => options[:c],
|
26
|
+
:description => options[:d]
|
20
27
|
|
21
28
|
render_table([image])
|
22
29
|
|
@@ -14,7 +14,7 @@ command [:show] do |c|
|
|
14
14
|
|
15
15
|
table_opts = global_options.merge({
|
16
16
|
:vertical => true,
|
17
|
-
:fields => [:id, :type, :owner, :created_at, :status, :arch, :name, :description, :virtual_size, :disk_size, :ancestor_id ]
|
17
|
+
:fields => [:id, :type, :owner, :created_at, :status, :arch, :name, :description, :virtual_size, :disk_size, "compatibility_mode", :official, :ancestor_id ]
|
18
18
|
})
|
19
19
|
|
20
20
|
render_table(images, table_opts)
|
data/lib/bbcloud/version.rb
CHANGED
@@ -20,6 +20,15 @@ _brightbox()
|
|
20
20
|
brightbox-servers)
|
21
21
|
case $command in
|
22
22
|
create)
|
23
|
+
case $prev in
|
24
|
+
-f|--user_data_file)
|
25
|
+
_filedir
|
26
|
+
return 0
|
27
|
+
;;
|
28
|
+
-n|--name|-m|--user-data|-i|--server-count)
|
29
|
+
return 0
|
30
|
+
;;
|
31
|
+
esac
|
23
32
|
if [[ "$cur" == -* ]] ; then
|
24
33
|
COMPREPLY=( $( compgen -W '--name --type --zone --server-count --user-data-file --user-data --no-base64' -- "$cur" ) )
|
25
34
|
else
|
@@ -36,11 +45,16 @@ _brightbox()
|
|
36
45
|
;;
|
37
46
|
brightbox-images)
|
38
47
|
case $command in
|
48
|
+
register)
|
49
|
+
if [[ "$cur" == -* ]] ; then
|
50
|
+
COMPREPLY=( $( compgen -W '--unmap' -- "$cur" ) )
|
51
|
+
fi
|
52
|
+
;;
|
39
53
|
destroy|list|show)
|
40
54
|
test -d ~/.brightbox/cache && COMPREPLY=( $( compgen -W '`ls ~/.brightbox/cache/`' -- "$cur" ) )
|
41
55
|
;;
|
42
56
|
*)
|
43
|
-
COMPREPLY=( $( compgen -W 'destroy help list show' -- "$cur" ) )
|
57
|
+
COMPREPLY=( $( compgen -W 'destroy help list show register' -- "$cur" ) )
|
44
58
|
;;
|
45
59
|
esac
|
46
60
|
;;
|
@@ -74,7 +88,33 @@ _brightbox()
|
|
74
88
|
COMPREPLY=( $( compgen -W 'client_add client_remove client_default help' -- "$cur" ) )
|
75
89
|
;;
|
76
90
|
esac
|
77
|
-
;;
|
91
|
+
;;
|
92
|
+
brightbox-users)
|
93
|
+
case $command in
|
94
|
+
update)
|
95
|
+
case $prev in
|
96
|
+
-f|--ssh-key)
|
97
|
+
_filedir
|
98
|
+
return 0
|
99
|
+
;;
|
100
|
+
-n|--name)
|
101
|
+
return 0
|
102
|
+
;;
|
103
|
+
esac
|
104
|
+
if [[ "$cur" == -* ]] ; then
|
105
|
+
COMPREPLY=( $( compgen -W '--ssh-key --name' -- "$cur" ) )
|
106
|
+
else
|
107
|
+
test -d ~/.brightbox/cache && COMPREPLY=( $( compgen -W '`ls ~/.brightbox/cache/`' -- "$cur" ) )
|
108
|
+
fi
|
109
|
+
;;
|
110
|
+
list|show)
|
111
|
+
test -d ~/.brightbox/cache && COMPREPLY=( $( compgen -W '`ls ~/.brightbox/cache/`' -- "$cur" ) )
|
112
|
+
;;
|
113
|
+
*)
|
114
|
+
COMPREPLY=( $( compgen -W 'list show update help' -- "$cur" ) )
|
115
|
+
;;
|
116
|
+
esac
|
117
|
+
;;
|
78
118
|
esac
|
79
119
|
|
80
120
|
}
|
@@ -82,6 +122,7 @@ complete -F _brightbox -o filenames brightbox-servers
|
|
82
122
|
complete -F _brightbox -o filenames brightbox-images
|
83
123
|
complete -F _brightbox -o filenames brightbox-cloudips
|
84
124
|
complete -F _brightbox -o filenames brightbox-config
|
125
|
+
complete -F _brightbox -o filenames brightbox-users
|
85
126
|
|
86
127
|
# Local variables:
|
87
128
|
# mode: shell-script
|
metadata
CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
|
8
|
+
- 1
|
9
|
+
version: 0.9.1
|
9
10
|
platform: ruby
|
10
11
|
authors:
|
11
12
|
- John Leach
|
@@ -13,7 +14,7 @@ autorequire:
|
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
16
|
|
16
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-27 00:00:00 +00:00
|
17
18
|
default_executable:
|
18
19
|
dependencies:
|
19
20
|
- !ruby/object:Gem::Dependency
|
@@ -152,6 +153,17 @@ files:
|
|
152
153
|
- bin/brightbox-types
|
153
154
|
- bin/brightbox-users
|
154
155
|
- bin/brightbox-zones
|
156
|
+
- debian/changelog
|
157
|
+
- debian/compat
|
158
|
+
- debian/control
|
159
|
+
- debian/copyright
|
160
|
+
- debian/libbbcloud-ruby1.8.bash-completion
|
161
|
+
- debian/patches/disable-rubygems-in-fog.patch
|
162
|
+
- debian/patches/disable_rubygems.patch
|
163
|
+
- debian/patches/series
|
164
|
+
- debian/patches/vendored-gems.patch
|
165
|
+
- debian/rules
|
166
|
+
- debian/source/format
|
155
167
|
- lib/bbcloud/accounts.rb
|
156
168
|
- lib/bbcloud/api.rb
|
157
169
|
- lib/bbcloud/cli.rb
|