tugboat 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tugboat/middleware/list_images.rb +3 -0
- data/lib/tugboat/version.rb +1 -1
- data/spec/cli/images_cli_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d29e3739288b2b4fe84d466672dc840926521529
|
4
|
+
data.tar.gz: 0431588980b59d18c1ef6dff0f22d17001c29c94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffa3baacba280f38ef8666561c319276e0197345575f333b47351b464b38111bacf2b02d63d76568a848de38f7aed5cfeb3ff8836f7efe1093c0886f9a06e688
|
7
|
+
data.tar.gz: 32c0e440603dc9b66142519b5c30fd39845567179380a20cca65d90c28388cb7b1026466fcc43ecdbf5ca0cb21a137598910b8df2b2da043dc8a0cbf127c12b0
|
@@ -6,6 +6,9 @@ module Tugboat
|
|
6
6
|
my_images = ocean.images.list :filter => "my_images"
|
7
7
|
if env["user_show_global_images"]
|
8
8
|
global = ocean.images.list :filter => "global"
|
9
|
+
else
|
10
|
+
say "Listing Your Images"
|
11
|
+
say "(Use `tugboat images list --global` to show all images)"
|
9
12
|
end
|
10
13
|
|
11
14
|
say "My Images:"
|
data/lib/tugboat/version.rb
CHANGED
data/spec/cli/images_cli_spec.rb
CHANGED
@@ -11,6 +11,8 @@ describe Tugboat::CLI do
|
|
11
11
|
@cli.images
|
12
12
|
|
13
13
|
expect($stdout.string).to eq <<-eos
|
14
|
+
Listing Your Images
|
15
|
+
(Use `tugboat images list --global` to show all images)
|
14
16
|
My Images:
|
15
17
|
NYTD Backup 1-18-2012 (id: 466, distro: Ubuntu)
|
16
18
|
NLP Final (id: 478, distro: Ubuntu)
|
@@ -26,6 +28,8 @@ NLP Final (id: 478, distro: Ubuntu)
|
|
26
28
|
@cli.images
|
27
29
|
|
28
30
|
expect($stdout.string).to eq <<-eos
|
31
|
+
Listing Your Images
|
32
|
+
(Use `tugboat images list --global` to show all images)
|
29
33
|
My Images:
|
30
34
|
No images found
|
31
35
|
eos
|