shelly 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/lib/shelly/cli/backup.rb +1 -2
- data/lib/shelly/cli/main.rb +1 -1
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/backup_spec.rb +1 -2
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 0.2.11 / 2013-03-22
|
2
|
+
|
3
|
+
* [bug] Zone option should be string, `shelly add` option fix
|
4
|
+
* [improvement] Output of `shelly backup list`
|
5
|
+
|
1
6
|
## 0.2.10 / 2013-03-18
|
2
7
|
|
3
8
|
* [feature] Added default organization option to `shelly add` which creates organization with the same name as cloud's code name
|
data/lib/shelly/cli/backup.rb
CHANGED
@@ -23,7 +23,7 @@ module Shelly
|
|
23
23
|
limit = 0
|
24
24
|
unless options[:all] || backups.count < (Shelly::Backup::LIMIT + 1)
|
25
25
|
limit = Shelly::Backup::LIMIT - 1
|
26
|
-
say "Showing only #{Shelly::Backup::LIMIT} backups."
|
26
|
+
say "Showing only last #{Shelly::Backup::LIMIT} backups.", :green
|
27
27
|
say "Use --all or -a option to list all backups."
|
28
28
|
end
|
29
29
|
to_display = [["Filename", "| Size", "| State"]]
|
@@ -31,7 +31,6 @@ module Shelly
|
|
31
31
|
to_display << [backup.filename, "| #{backup.human_size}", "| #{backup.state.humanize}"]
|
32
32
|
end
|
33
33
|
|
34
|
-
say "Available backups:", :green
|
35
34
|
say_new_line
|
36
35
|
print_table(to_display, :ident => 2)
|
37
36
|
else
|
data/lib/shelly/cli/main.rb
CHANGED
@@ -87,7 +87,7 @@ module Shelly
|
|
87
87
|
:desc => "Skip Shelly Cloud requirements check"
|
88
88
|
method_option "default-organization", :type => :boolean,
|
89
89
|
:desc => "Create cloud with default organization"
|
90
|
-
method_option "zone", :type => :
|
90
|
+
method_option "zone", :type => :string, :hide => true,
|
91
91
|
:desc => "Create cloud in given zone"
|
92
92
|
desc "add", "Add a new cloud"
|
93
93
|
def add
|
data/lib/shelly/version.rb
CHANGED
@@ -46,7 +46,6 @@ describe Shelly::CLI::Backup do
|
|
46
46
|
{"filename" => "backup.mongo.tar.gz", "human_size" => "22kb",
|
47
47
|
"size" => 333, "state" => "in_progress"}])
|
48
48
|
$stdout.should_not_receive(:puts).with("Limiting the number of backups to 1.")
|
49
|
-
$stdout.should_receive(:puts).with(green "Available backups:")
|
50
49
|
$stdout.should_receive(:puts).with("\n")
|
51
50
|
$stdout.should_receive(:puts).with(" Filename | Size | State")
|
52
51
|
$stdout.should_receive(:puts).with(" backup.postgre.tar.gz | 10kb | completed")
|
@@ -57,7 +56,7 @@ describe Shelly::CLI::Backup do
|
|
57
56
|
|
58
57
|
it "should show --all option if not present" do
|
59
58
|
stub_const("Shelly::Backup::LIMIT", 1)
|
60
|
-
$stdout.should_receive(:puts).with("Showing only 1 backups.")
|
59
|
+
$stdout.should_receive(:puts).with(green "Showing only last 1 backups.")
|
61
60
|
$stdout.should_receive(:puts).with("Use --all or -a option to list all backups.")
|
62
61
|
@client.should_receive(:database_backups).with("foo-staging").and_return(
|
63
62
|
[{"filename" => "backup.postgre.tar.gz", "human_size" => "10kb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -317,7 +317,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
317
317
|
version: '0'
|
318
318
|
segments:
|
319
319
|
- 0
|
320
|
-
hash:
|
320
|
+
hash: 2918500855483803352
|
321
321
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
322
322
|
none: false
|
323
323
|
requirements:
|
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
326
326
|
version: '0'
|
327
327
|
segments:
|
328
328
|
- 0
|
329
|
-
hash:
|
329
|
+
hash: 2918500855483803352
|
330
330
|
requirements: []
|
331
331
|
rubyforge_project: shelly
|
332
332
|
rubygems_version: 1.8.25
|