shelly 0.2.10 → 0.2.11

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/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
@@ -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
@@ -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 => :boolean, :hide => true,
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
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.2.10"
2
+ VERSION = "0.2.11"
3
3
  end
@@ -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.10
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-18 00:00:00.000000000 Z
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: -3332234894998950959
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: -3332234894998950959
329
+ hash: 2918500855483803352
330
330
  requirements: []
331
331
  rubyforge_project: shelly
332
332
  rubygems_version: 1.8.25