magellan-cli 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/magellan/cli/resources/authority.rb +2 -2
  4. data/lib/magellan/cli/resources/client_version.rb +2 -2
  5. data/lib/magellan/cli/resources/cloudsql.rb +1 -1
  6. data/lib/magellan/cli/resources/organization.rb +1 -1
  7. data/lib/magellan/cli/resources/project.rb +2 -2
  8. data/lib/magellan/cli/resources/stage.rb +2 -2
  9. data/lib/magellan/cli/resources/team.rb +1 -1
  10. data/lib/magellan/cli/resources/transaction_router.rb +1 -1
  11. data/lib/magellan/cli/resources/worker.rb +1 -1
  12. data/lib/magellan/cli/version.rb +1 -1
  13. data/reference/en/cloudsql_instance.md +2 -2
  14. data/reference/en/index.md +2 -2
  15. data/reference/en/messaging/http.md +2 -2
  16. data/reference/en/messaging/mqtt.md +2 -2
  17. data/reference/en/resources/authority.md +2 -2
  18. data/reference/en/resources/client_version.md +2 -2
  19. data/reference/en/resources/cloudsql.md +2 -2
  20. data/reference/en/resources/container.md +2 -2
  21. data/reference/en/resources/image.md +2 -2
  22. data/reference/en/resources/organization.md +2 -2
  23. data/reference/en/resources/project.md +2 -2
  24. data/reference/en/resources/stage.md +2 -2
  25. data/reference/en/resources/team.md +2 -2
  26. data/reference/en/resources/worker.md +2 -2
  27. data/reference/ja/cloudsql_instance.md +2 -2
  28. data/reference/ja/index.md +2 -2
  29. data/reference/ja/messaging/http.md +2 -2
  30. data/reference/ja/messaging/mqtt.md +2 -2
  31. data/reference/ja/resources/authority.md +2 -2
  32. data/reference/ja/resources/client_version.md +2 -2
  33. data/reference/ja/resources/cloudsql.md +2 -2
  34. data/reference/ja/resources/container.md +2 -2
  35. data/reference/ja/resources/image.md +2 -2
  36. data/reference/ja/resources/organization.md +2 -2
  37. data/reference/ja/resources/project.md +2 -2
  38. data/reference/ja/resources/stage.md +2 -2
  39. data/reference/ja/resources/team.md +2 -2
  40. data/reference/ja/resources/worker.md +2 -2
  41. data/spec/magellan/cli/resources/client_version_spec.rb +4 -4
  42. data/spec/magellan/cli/resources/organization_spec.rb +1 -1
  43. data/spec/magellan/cli/resources/stage_spec.rb +1 -1
  44. data/spec/magellan/cli/resources/team_spec.rb +1 -1
  45. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7c46d41a8b54f2112d6273628ce8319f7ee5914
4
- data.tar.gz: 816b4078c1afb05b894944ac7029336a07425a9b
3
+ metadata.gz: b87130ea7865250b934ad90135735a636803fa10
4
+ data.tar.gz: 2148bc95e2cf2dfc7aaeabb0b967ca324adf48b9
5
5
  SHA512:
6
- metadata.gz: 1042cb1308e8d06905a99391d24f65ec5495a0c664b876600e32fa6654841eaf0b4dd1c3dc0ecf4e25c71e9df5a5bbad9e31dfb5340ef2bb74063889a792894a
7
- data.tar.gz: 60b57a198458ea13c2a1c950f7203a15954a808c1642166bd7d33053b3d99bc2e213c50dfbebba8988491b21e77ed1f2a517292636852f73aa9ac2afcdf0b631
6
+ metadata.gz: 86848fa400bc44a3de4608b8ab81f060bf448bb75fc429abc16780d7fb5e095e16a761dbbbe0e998d269f4e697f1fb7a742c8d9a451627c53b2d006ac82c21ea
7
+ data.tar.gz: c1f66aea03ce6e4de4faef5a909d29344860ec0c24b004892b335a84d253acfa57e126a9d93b6ef245d7439e76056c976da0a298e4b3cc7cd8757ad4daded22b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.10.0)
4
+ magellan-cli (0.11.0)
5
5
  activesupport
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -117,4 +117,4 @@ DEPENDENCIES
117
117
  simplecov-rcov
118
118
 
119
119
  BUNDLED WITH
120
- 1.14.6
120
+ 1.15.4
@@ -29,7 +29,7 @@ module Magellan
29
29
  def update(attrs)
30
30
  s = load_selection!(self.class)
31
31
  attrs = JSON.parse(File.readable?(attrs) ? File.read(attrs) : attrs)
32
- put_json("/admin/#{resource_key}/#{s['id']}/edit.json", {"magellan_auth_authority" => attrs})
32
+ put_json("/admin/#{resource_key}/#{s['id']}/edit.js", {"magellan_auth_authority" => attrs})
33
33
  end
34
34
 
35
35
  desc "create PROJECT_ROLE STAGE_ROLE STAGE_TYPE", I18n.t(:create, scope: [:resources, :authority, :cmd], resource_name: resource_name)
@@ -61,7 +61,7 @@ module Magellan
61
61
  "stage_type" => stage_type_map[stage_type],
62
62
  }
63
63
  }
64
- ret = post_json("/admin/#{resource_key}/new.json", params)
64
+ ret = post_json("/admin/#{resource_key}/new.js", params)
65
65
  if ret and ret["id"]
66
66
  select ret["id"]
67
67
  end
@@ -29,7 +29,7 @@ module Magellan
29
29
  attrs["domain"] = d
30
30
  end
31
31
  params = { parameter_name => attrs }
32
- post_json("/admin/#{resource_key}/new.json", params)
32
+ post_json("/admin/#{resource_key}/new.js", params)
33
33
  # TODO implement select method
34
34
  # select(version)
35
35
  end
@@ -56,7 +56,7 @@ module Magellan
56
56
  params = {
57
57
  parameter_name => attrs
58
58
  }
59
- put_json("/admin/#{resource_key}/#{cv["id"]}/edit.json", params)
59
+ put_json("/admin/#{resource_key}/#{cv["id"]}/edit.js", params)
60
60
  end
61
61
 
62
62
  desc "delete VERSION", I18n.t(:delete, scope: [:resources, :client_version, :cmd], resource_name: resource_name)
@@ -24,7 +24,7 @@ module Magellan
24
24
  "name" => name,
25
25
  }
26
26
  }
27
- res0 = post_json("/admin/#{resource_key}/new.json", params)
27
+ res0 = post_json("/admin/#{resource_key}/new.js", params)
28
28
  select(name)
29
29
 
30
30
  return res0 if options["A"]
@@ -18,7 +18,7 @@ module Magellan
18
18
  "name" => name,
19
19
  }
20
20
  }
21
- post_json("/admin/#{self.resource_key}/new.json", params)
21
+ post_json("/admin/#{self.resource_key}/new.js", params)
22
22
  select(name)
23
23
  end
24
24
  end
@@ -17,7 +17,7 @@ module Magellan
17
17
  def update(attrs)
18
18
  s = load_selection!(self.class)
19
19
  attrs = JSON.parse(File.readable?(attrs) ? File.read(attrs) : attrs)
20
- put_json("/admin/project/#{s['id']}/edit.json", {"project" => attrs})
20
+ put_json("/admin/project/#{s['id']}/edit.js", {"project" => attrs})
21
21
  end
22
22
 
23
23
  desc "create NAME", I18n.t(:create, scope: [:resources, :common, :cmd], resource_name: resource_name)
@@ -29,7 +29,7 @@ module Magellan
29
29
  "name" => name,
30
30
  }
31
31
  }
32
- post_json("/admin/#{resource_key}/new.json", params)
32
+ post_json("/admin/#{resource_key}/new.js", params)
33
33
  select(name)
34
34
  end
35
35
  end
@@ -38,7 +38,7 @@ module Magellan
38
38
  "stage_size" => size,
39
39
  }
40
40
  }
41
- post_json("/admin/#{resource_key}/new.json", params)
41
+ post_json("/admin/#{resource_key}/new.js", params)
42
42
  select(name)
43
43
  end
44
44
 
@@ -116,7 +116,7 @@ module Magellan
116
116
  def update(attrs)
117
117
  s = load_selection!(self.class)
118
118
  attrs = JSON.parse(File.readable?(attrs) ? File.read(attrs) : attrs)
119
- put_json("/admin/stage~title/#{s['id']}/edit.json", {"stage_title" => attrs})
119
+ put_json("/admin/stage~title/#{s['id']}/edit.js", {"stage_title" => attrs})
120
120
  end
121
121
 
122
122
  desc "release_now", I18n.t(:release_now, scope: [:resources, :stage, :cmd])
@@ -25,7 +25,7 @@ module Magellan
25
25
  "role" => role,
26
26
  }
27
27
  }
28
- post_json("/admin/#{self.resource_key}/new.json", params)
28
+ post_json("/admin/#{self.resource_key}/new.js", params)
29
29
  select(name)
30
30
  end
31
31
 
@@ -18,7 +18,7 @@ module Magellan
18
18
  "name" => name,
19
19
  }
20
20
  }
21
- post_json("/admin/#{self.resource_key}/new.json", params)
21
+ post_json("/admin/#{self.resource_key}/new.js", params)
22
22
  select(name)
23
23
  end
24
24
 
@@ -31,7 +31,7 @@ module Magellan
31
31
  "image_name" => image_name,
32
32
  }.update(attrs)
33
33
  }
34
- post_json("/admin/#{self.resource_key}/new.json", params)
34
+ post_json("/admin/#{self.resource_key}/new.js", params)
35
35
  select(name)
36
36
  end
37
37
 
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.10.0"
3
+ VERSION = "0.11.0"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: cloudsql_instance | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / cloudsql_instance en <a href="/reference/ja/cloudsql_instance.html">ja</a>
3
+ title: cloudsql_instance | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / cloudsql_instance en <a href="/reference/ja/cloudsql_instance.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / en <a href="/reference/ja/index.html">ja</a>
3
+ title: magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / en <a href="/reference/ja/index.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: http | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / http en <a href="/reference/ja/messaging/http.html">ja</a>
3
+ title: http | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / http en <a href="/reference/ja/messaging/http.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: mqtt | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / mqtt en <a href="/reference/ja/messaging/mqtt.html">ja</a>
3
+ title: mqtt | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / mqtt en <a href="/reference/ja/messaging/mqtt.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: authority | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / authority en <a href="/reference/ja/resources/authority.html">ja</a>
3
+ title: authority | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / authority en <a href="/reference/ja/resources/authority.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: client_version | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / client_version en <a href="/reference/ja/resources/client_version.html">ja</a>
3
+ title: client_version | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / client_version en <a href="/reference/ja/resources/client_version.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: cloudsql | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / cloudsql en <a href="/reference/ja/resources/cloudsql.html">ja</a>
3
+ title: cloudsql | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / cloudsql en <a href="/reference/ja/resources/cloudsql.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: container | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / container en <a href="/reference/ja/resources/container.html">ja</a>
3
+ title: container | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / container en <a href="/reference/ja/resources/container.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: image | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / image en <a href="/reference/ja/resources/image.html">ja</a>
3
+ title: image | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / image en <a href="/reference/ja/resources/image.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: organization | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / organization en <a href="/reference/ja/resources/organization.html">ja</a>
3
+ title: organization | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / organization en <a href="/reference/ja/resources/organization.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: project | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / project en <a href="/reference/ja/resources/project.html">ja</a>
3
+ title: project | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / project en <a href="/reference/ja/resources/project.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: stage | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / stage en <a href="/reference/ja/resources/stage.html">ja</a>
3
+ title: stage | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / stage en <a href="/reference/ja/resources/stage.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: team | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / team en <a href="/reference/ja/resources/team.html">ja</a>
3
+ title: team | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / team en <a href="/reference/ja/resources/team.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: worker | magellan-cli-0.10 (en) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.10</a> / worker en <a href="/reference/ja/resources/worker.html">ja</a>
3
+ title: worker | magellan-cli-0.11 (en) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.11</a> / worker en <a href="/reference/ja/resources/worker.html">ja</a>
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-en
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: cloudsql_instance | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / cloudsql_instance <a href="/reference/en/cloudsql_instance.html">en</a> ja
3
+ title: cloudsql_instance | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / cloudsql_instance <a href="/reference/en/cloudsql_instance.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / <a href="/reference/en/index.html">en</a> ja
3
+ title: magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / <a href="/reference/en/index.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: http | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / http <a href="/reference/en/messaging/http.html">en</a> ja
3
+ title: http | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / http <a href="/reference/en/messaging/http.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: mqtt | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / mqtt <a href="/reference/en/messaging/mqtt.html">en</a> ja
3
+ title: mqtt | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / mqtt <a href="/reference/en/messaging/mqtt.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: authority | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / authority <a href="/reference/en/resources/authority.html">en</a> ja
3
+ title: authority | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / authority <a href="/reference/en/resources/authority.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: client_version | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / client_version <a href="/reference/en/resources/client_version.html">en</a> ja
3
+ title: client_version | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / client_version <a href="/reference/en/resources/client_version.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: cloudsql | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / cloudsql <a href="/reference/en/resources/cloudsql.html">en</a> ja
3
+ title: cloudsql | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / cloudsql <a href="/reference/en/resources/cloudsql.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: container | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / container <a href="/reference/en/resources/container.html">en</a> ja
3
+ title: container | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / container <a href="/reference/en/resources/container.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: image | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / image <a href="/reference/en/resources/image.html">en</a> ja
3
+ title: image | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / image <a href="/reference/en/resources/image.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: organization | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / organization <a href="/reference/en/resources/organization.html">en</a> ja
3
+ title: organization | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / organization <a href="/reference/en/resources/organization.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: project | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / project <a href="/reference/en/resources/project.html">en</a> ja
3
+ title: project | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / project <a href="/reference/en/resources/project.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: stage | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / stage <a href="/reference/en/resources/stage.html">en</a> ja
3
+ title: stage | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / stage <a href="/reference/en/resources/stage.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: team | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / team <a href="/reference/en/resources/team.html">en</a> ja
3
+ title: team | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / team <a href="/reference/en/resources/team.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: index
3
- title: worker | magellan-cli-0.10 (ja) | Reference
4
- breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.10</a> / worker <a href="/reference/en/resources/worker.html">en</a> ja
3
+ title: worker | magellan-cli-0.11 (ja) | Reference
4
+ breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.11</a> / worker <a href="/reference/en/resources/worker.html">en</a> ja
5
5
  sidemenu: sidemenu/reference/magellan-cli/sidemenu-ja
6
6
  ---
7
7
 
@@ -23,7 +23,7 @@ describe Magellan::Cli::Resources::ClientVersion do
23
23
  let(:client_version_list_response) { [ { "id" => 1, "version" => "1.1.0" } ] }
24
24
  before do
25
25
  allow(cmd).to receive(:load_selections).and_return({Magellan::Cli::Resources::Project.parameter_name => {"id" => 1, "name" => "ProjectA"}, Magellan::Cli::Resources::Stage.parameter_name => {"id" => 1, "name" => "StageA"} })
26
- expect(cmd).to receive(:post_json).with("/admin/client_version/new.json", { "client_version" => { "project_id" => 1, "stage_title_id" => 1, "version" => "1.1.0" } })
26
+ expect(cmd).to receive(:post_json).with("/admin/client_version/new.js", { "client_version" => { "project_id" => 1, "stage_title_id" => 1, "version" => "1.1.0" } })
27
27
  # TODO: stub in details
28
28
  # expect(cmd).to receive(:get_json).with(any_args).and_return(client_version_list_response)
29
29
  # expect(cmd).to receive(:update_selections).with("client_version" => { "id" => 1, "version" => "1.0.0" })
@@ -36,7 +36,7 @@ describe Magellan::Cli::Resources::ClientVersion do
36
36
  describe :success_with_domain do
37
37
  before do
38
38
  allow(cmd).to receive(:load_selections).and_return({Magellan::Cli::Resources::Project.parameter_name => {"id" => 1, "name" => "ProjectA"}, Magellan::Cli::Resources::Stage.parameter_name => {"id" => 1, "name" => "StageA"} })
39
- expect(cmd).to receive(:post_json).with("/admin/client_version/new.json", { "client_version" => { "project_id" => 1, "stage_title_id" => 1, "version" => "1.1.0", "domain" => "foo.example.com" } })
39
+ expect(cmd).to receive(:post_json).with("/admin/client_version/new.js", { "client_version" => { "project_id" => 1, "stage_title_id" => 1, "version" => "1.1.0", "domain" => "foo.example.com" } })
40
40
  end
41
41
  it do
42
42
  cmd.options = {domain: "foo.example.com"}
@@ -69,7 +69,7 @@ describe Magellan::Cli::Resources::ClientVersion do
69
69
  describe :success_to_update_domain do
70
70
  before do
71
71
  allow(cmd).to receive(:load_selections).and_return(selections)
72
- expect(cmd).to receive(:put_json).with("/admin/client_version/1/edit.json", { "client_version" => { "domain" => "bar.example.com" } })
72
+ expect(cmd).to receive(:put_json).with("/admin/client_version/1/edit.js", { "client_version" => { "domain" => "bar.example.com" } })
73
73
  end
74
74
  it do
75
75
  cmd.update('{"domain": "bar.example.com"}')
@@ -85,7 +85,7 @@ describe Magellan::Cli::Resources::ClientVersion do
85
85
  allow(cmd).to receive(:load_selections).and_return(selections)
86
86
  expect(http_conn).to receive(:get_json).with("/admin/stage~title.json", {"f[name][1][o]"=>"is", "f[name][1][v]"=>st_name, "f[project][2][o]"=>"is", "f[project][2][v]"=>1}).
87
87
  and_return([{"id" => st_id, "name" => st_name}])
88
- expect(cmd).to receive(:put_json).with("/admin/client_version/1/edit.json", { "client_version" => { "stage_title_id" => st_id } })
88
+ expect(cmd).to receive(:put_json).with("/admin/client_version/1/edit.js", { "client_version" => { "stage_title_id" => st_id } })
89
89
  end
90
90
  it do
91
91
  cmd.update('{"stage": "Stage2"}')
@@ -21,7 +21,7 @@ describe Magellan::Cli::Resources::Organization do
21
21
  describe :create do
22
22
  let(:organization_list_response) { [ { "id" => 1, "name" => "new1" } ] }
23
23
  before do
24
- expect(cmd).to receive(:post_json).with("/admin/magellan~auth~organization/new.json", {"magellan_auth_organization" => { "name" => "new1" }})
24
+ expect(cmd).to receive(:post_json).with("/admin/magellan~auth~organization/new.js", {"magellan_auth_organization" => { "name" => "new1" }})
25
25
  allow(cmd).to receive(:get_json).with(any_args).and_return(organization_list_response)
26
26
  end
27
27
  it do
@@ -40,7 +40,7 @@ describe Magellan::Cli::Resources::Stage do
40
40
  let(:organization_list_response) { [ { "id" => 1, "label" => "Stage1" } ] }
41
41
  before do
42
42
  expect(cmd).to receive(:post_json).
43
- with("/admin/stage~title/new.json", {"stage_title" => {"project_id"=>1,"name"=>stage_name, "stage_type"=>"development", "stage_size"=>"standard" }})
43
+ with("/admin/stage~title/new.js", {"stage_title" => {"project_id"=>1,"name"=>stage_name, "stage_type"=>"development", "stage_size"=>"standard" }})
44
44
  allow(cmd).to receive(:get_json).with(any_args).and_return(organization_list_response)
45
45
  allow(cmd).to receive(:load_selection!).and_return(proj1_json)
46
46
  allow(cmd).to receive(:select).with(stage_name)
@@ -23,7 +23,7 @@ describe Magellan::Cli::Resources::Team do
23
23
  let(:team_list_response) { [{"id" => 1, "name" => "team1"}] }
24
24
  before do
25
25
  allow(cmd).to receive(:load_selections).and_return({ Magellan::Cli::Resources::Organization.parameter_name => {"id" => 1, "name" => "org1"}})
26
- expect(cmd).to receive(:post_json).with("/admin/magellan~auth~team/new.json", { "magellan_auth_team" => { "organization_id" => 1, "name" => "team1", "role" => role } })
26
+ expect(cmd).to receive(:post_json).with("/admin/magellan~auth~team/new.js", { "magellan_auth_team" => { "organization_id" => 1, "name" => "team1", "role" => role } })
27
27
  # TODO: stub in details...
28
28
  allow(cmd).to receive(:get_json).with(any_args).and_return(team_list_response)
29
29
  allow(cmd).to receive(:get_json).with(any_args).and_return(team_list_response)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magellan-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm2000
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-03 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -311,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  version: '0'
312
312
  requirements: []
313
313
  rubyforge_project:
314
- rubygems_version: 2.5.2
314
+ rubygems_version: 2.6.13
315
315
  signing_key:
316
316
  specification_version: 4
317
317
  summary: commandline tools for magellanic cloud service.