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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/magellan/cli/resources/authority.rb +2 -2
- data/lib/magellan/cli/resources/client_version.rb +2 -2
- data/lib/magellan/cli/resources/cloudsql.rb +1 -1
- data/lib/magellan/cli/resources/organization.rb +1 -1
- data/lib/magellan/cli/resources/project.rb +2 -2
- data/lib/magellan/cli/resources/stage.rb +2 -2
- data/lib/magellan/cli/resources/team.rb +1 -1
- data/lib/magellan/cli/resources/transaction_router.rb +1 -1
- data/lib/magellan/cli/resources/worker.rb +1 -1
- data/lib/magellan/cli/version.rb +1 -1
- data/reference/en/cloudsql_instance.md +2 -2
- data/reference/en/index.md +2 -2
- data/reference/en/messaging/http.md +2 -2
- data/reference/en/messaging/mqtt.md +2 -2
- data/reference/en/resources/authority.md +2 -2
- data/reference/en/resources/client_version.md +2 -2
- data/reference/en/resources/cloudsql.md +2 -2
- data/reference/en/resources/container.md +2 -2
- data/reference/en/resources/image.md +2 -2
- data/reference/en/resources/organization.md +2 -2
- data/reference/en/resources/project.md +2 -2
- data/reference/en/resources/stage.md +2 -2
- data/reference/en/resources/team.md +2 -2
- data/reference/en/resources/worker.md +2 -2
- data/reference/ja/cloudsql_instance.md +2 -2
- data/reference/ja/index.md +2 -2
- data/reference/ja/messaging/http.md +2 -2
- data/reference/ja/messaging/mqtt.md +2 -2
- data/reference/ja/resources/authority.md +2 -2
- data/reference/ja/resources/client_version.md +2 -2
- data/reference/ja/resources/cloudsql.md +2 -2
- data/reference/ja/resources/container.md +2 -2
- data/reference/ja/resources/image.md +2 -2
- data/reference/ja/resources/organization.md +2 -2
- data/reference/ja/resources/project.md +2 -2
- data/reference/ja/resources/stage.md +2 -2
- data/reference/ja/resources/team.md +2 -2
- data/reference/ja/resources/worker.md +2 -2
- data/spec/magellan/cli/resources/client_version_spec.rb +4 -4
- data/spec/magellan/cli/resources/organization_spec.rb +1 -1
- data/spec/magellan/cli/resources/stage_spec.rb +1 -1
- data/spec/magellan/cli/resources/team_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b87130ea7865250b934ad90135735a636803fa10
|
4
|
+
data.tar.gz: 2148bc95e2cf2dfc7aaeabb0b967ca324adf48b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86848fa400bc44a3de4608b8ab81f060bf448bb75fc429abc16780d7fb5e095e16a761dbbbe0e998d269f4e697f1fb7a742c8d9a451627c53b2d006ac82c21ea
|
7
|
+
data.tar.gz: c1f66aea03ce6e4de4faef5a909d29344860ec0c24b004892b335a84d253acfa57e126a9d93b6ef245d7439e76056c976da0a298e4b3cc7cd8757ad4daded22b
|
data/Gemfile.lock
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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)
|
@@ -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.
|
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.
|
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.
|
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.
|
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])
|
data/lib/magellan/cli/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: index
|
3
|
-
title: cloudsql_instance | magellan-cli-0.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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
|
|
data/reference/en/index.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: index
|
3
|
-
title: magellan-cli-0.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/en">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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
|
|
data/reference/ja/index.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: index
|
3
|
-
title: magellan-cli-0.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
4
|
-
breadcrumb: <a href="/">Top</a> / <a href="/reference">Reference</a> / <a href="/reference/magellan-cli/ja">magellan-cli-0.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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-
|
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.
|
314
|
+
rubygems_version: 2.6.13
|
315
315
|
signing_key:
|
316
316
|
specification_version: 4
|
317
317
|
summary: commandline tools for magellanic cloud service.
|