shelly 0.1.28 → 0.1.29

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.
@@ -79,10 +79,14 @@ module Shelly
79
79
  :desc => "Server size [large, small]"
80
80
  method_option "redeem-code", :type => :string, :aliases => "-r",
81
81
  :desc => "Redeem code for free credits"
82
+ method_option "skip-requirements-check", :type => :boolean,
83
+ :desc => "Skip Shelly Cloud requirements check"
82
84
  desc "add", "Add a new cloud"
83
85
  def add
84
86
  check_options(options)
85
- return unless check(verbose = false)
87
+ unless options["skip-requirements-check"]
88
+ return unless check(verbose = false)
89
+ end
86
90
  app = Shelly::App.new
87
91
  app.code_name = options["code-name"] || ask_for_code_name
88
92
  app.databases = options["databases"] || ask_for_databases
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.1.28"
2
+ VERSION = "0.1.29"
3
3
  end
@@ -523,6 +523,14 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository\e[0m
523
523
  invoke(@main, :add)
524
524
  end
525
525
  end
526
+
527
+ it "should skip checking shelly requirements if --skip-requirements-check provided" do
528
+ @main.options = {"skip-requirements-check" => true}
529
+ @main.should_not_receive(:check)
530
+ fake_stdin(["foooo", "none"]) do
531
+ invoke(@main, :add)
532
+ end
533
+ end
526
534
  end
527
535
 
528
536
  describe "#list" do
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.1.28
4
+ version: 0.1.29
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -343,12 +343,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
343
343
  - - ! '>='
344
344
  - !ruby/object:Gem::Version
345
345
  version: '0'
346
+ segments:
347
+ - 0
348
+ hash: 1859140322518303885
346
349
  required_rubygems_version: !ruby/object:Gem::Requirement
347
350
  none: false
348
351
  requirements:
349
352
  - - ! '>='
350
353
  - !ruby/object:Gem::Version
351
354
  version: '0'
355
+ segments:
356
+ - 0
357
+ hash: 1859140322518303885
352
358
  requirements: []
353
359
  rubyforge_project: shelly
354
360
  rubygems_version: 1.8.24