magellan-cli 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f56a7867635b8b04efd6c8963f2e361d5595b4c
4
- data.tar.gz: bdcd4c0d35743f63d06893c86f19ae444cfc23c2
3
+ metadata.gz: 677c866fdec8cf71b6cc7f80d3565362bee866ed
4
+ data.tar.gz: 8bcbdfa44c81412e912f27ebf33367e3fa0c14fe
5
5
  SHA512:
6
- metadata.gz: 13e9af5a5addcd0a6b6e1f9112de1547c03ca2a6593ad49e417a6707309b2162552c0ed8fad4e1d0791095b27d091f476615fa9d5b52f82375c69b290158c2d1
7
- data.tar.gz: f8e9cadeafb898f308e78cb5f8e5bfe1f6385474c3b2f23e87f491c31e1979285ad880da76a7d28592e2a108813f22d9f1765a0964c0730f3ce34132b05ac7bd
6
+ metadata.gz: 4f25ddfdafe4d927d7d56f596ef11cb414cf55538c5d6a9f86dc130cd90cfdbff1d2373e3f1781f525be08b1235938256d7ff0b3c7f2a46429bdbe99a51cf2ae
7
+ data.tar.gz: 810aa638fcd93250ed8d1b4ae9f2686ff343a202b2a5a9daaf0f04d67ad178cabc2c53d061814491f8ffcee4a2fe1380ad3937e9837be52f0b109004d3185b94
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.3.0)
4
+ magellan-cli (0.3.1)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -31,7 +31,7 @@ module Magellan
31
31
 
32
32
  def check_response(res)
33
33
  case res.status
34
- when 200...300 then
34
+ when 200...400 then
35
35
  r = JSON.parse(res.body)
36
36
  log_verbose(JSON.pretty_generate(r))
37
37
  r
@@ -6,6 +6,8 @@ module Magellan
6
6
  module Resources
7
7
 
8
8
  class Cloudsql < Base
9
+ include Deletable
10
+
9
11
  self.resource_key = "cloudsql~database"
10
12
  self.resource_dependency = {"stage" => Stage.parameter_name}
11
13
  self.hidden_fields = %w[cloudsql_instance_id].map(&:freeze).freeze
@@ -22,11 +24,6 @@ module Magellan
22
24
  post_json("/admin/#{resource_key}/new.json", params)
23
25
  select(name)
24
26
  end
25
-
26
- desc "delete ID", "Delete the #{resource_name} database specified by ID"
27
- def delete(id)
28
- super("/admin/#{resource_key}/#{id}/delete.js")
29
- end
30
27
  end
31
28
  end
32
29
  end
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magellan-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm2000
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.2.2
199
+ rubygems_version: 2.4.5
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: commandline tools for magellanic cloud service.