vas 0.3.0 → 0.4.0
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/README.md +25 -5
- data/lib/vas.rb +2 -7
- data/lib/vas/gemfire/agent_instances.rb +16 -6
- data/lib/vas/gemfire/agent_live_configurations.rb +14 -4
- data/lib/vas/gemfire/agent_logs.rb +5 -4
- data/lib/vas/gemfire/agent_node_instances.rb +5 -4
- data/lib/vas/gemfire/agent_pending_configurations.rb +5 -4
- data/lib/vas/gemfire/application_code.rb +7 -6
- data/lib/vas/gemfire/application_code_images.rb +19 -11
- data/lib/vas/gemfire/cache_server_instances.rb +18 -8
- data/lib/vas/gemfire/cache_server_live_configurations.rb +14 -4
- data/lib/vas/gemfire/cache_server_logs.rb +5 -4
- data/lib/vas/gemfire/cache_server_node_instances.rb +7 -6
- data/lib/vas/gemfire/cache_server_pending_configurations.rb +6 -5
- data/lib/vas/gemfire/disk_stores.rb +23 -13
- data/lib/vas/gemfire/gemfire.rb +8 -7
- data/lib/vas/gemfire/groups.rb +9 -8
- data/lib/vas/gemfire/installation_images.rb +5 -4
- data/lib/vas/gemfire/installations.rb +11 -10
- data/lib/vas/gemfire/live_application_codes.rb +3 -3
- data/lib/vas/gemfire/locator_instances.rb +25 -20
- data/lib/vas/gemfire/locator_live_configurations.rb +14 -4
- data/lib/vas/gemfire/locator_logs.rb +5 -4
- data/lib/vas/gemfire/locator_node_instances.rb +7 -6
- data/lib/vas/gemfire/locator_pending_configurations.rb +6 -5
- data/lib/vas/gemfire/nodes.rb +20 -21
- data/lib/vas/gemfire/pending_application_codes.rb +8 -4
- data/lib/vas/gemfire/statistics.rb +21 -13
- data/lib/vas/rabbitmq/groups.rb +8 -7
- data/lib/vas/rabbitmq/installation_images.rb +7 -6
- data/lib/vas/rabbitmq/installations.rb +8 -7
- data/lib/vas/rabbitmq/instances.rb +20 -10
- data/lib/vas/rabbitmq/live_configurations.rb +15 -5
- data/lib/vas/rabbitmq/logs.rb +7 -6
- data/lib/vas/rabbitmq/node_instances.rb +7 -6
- data/lib/vas/rabbitmq/nodes.rb +13 -15
- data/lib/vas/rabbitmq/pending_configurations.rb +7 -6
- data/lib/vas/rabbitmq/plugin_images.rb +14 -8
- data/lib/vas/rabbitmq/plugins.rb +24 -23
- data/lib/vas/rabbitmq/rabbitmq.rb +10 -7
- data/lib/vas/shared/collection.rb +12 -6
- data/lib/vas/shared/configuration.rb +16 -8
- data/lib/vas/shared/groups.rb +28 -10
- data/lib/vas/shared/installation_images.rb +20 -8
- data/lib/vas/shared/installations.rb +23 -12
- data/lib/vas/shared/{instances.rb → instance.rb} +11 -12
- data/lib/vas/shared/logs.rb +30 -21
- data/lib/vas/shared/mutable_collection.rb +5 -3
- data/lib/vas/shared/node_instances.rb +12 -7
- data/lib/vas/shared/nodes.rb +14 -12
- data/lib/vas/shared/pending_configuration.rb +12 -5
- data/lib/vas/shared/resource.rb +10 -6
- data/lib/vas/shared/security.rb +15 -11
- data/lib/vas/shared/state_resource.rb +12 -6
- data/lib/vas/tc_server/applications.rb +24 -21
- data/lib/vas/tc_server/configuration.rb +3 -3
- data/lib/vas/tc_server/groups.rb +7 -6
- data/lib/vas/tc_server/installation_images.rb +5 -4
- data/lib/vas/tc_server/installations.rb +11 -12
- data/lib/vas/tc_server/instances.rb +28 -20
- data/lib/vas/tc_server/live_configurations.rb +3 -3
- data/lib/vas/tc_server/logs.rb +1 -2
- data/lib/vas/tc_server/node_applications.rb +19 -19
- data/lib/vas/tc_server/node_instances.rb +9 -8
- data/lib/vas/tc_server/node_revisions.rb +12 -10
- data/lib/vas/tc_server/nodes.rb +11 -9
- data/lib/vas/tc_server/pending_configurations.rb +5 -4
- data/lib/vas/tc_server/revision_images.rb +19 -11
- data/lib/vas/tc_server/revisions.rb +22 -18
- data/lib/vas/tc_server/tc_server.rb +9 -8
- data/lib/vas/tc_server/template_images.rb +19 -11
- data/lib/vas/tc_server/templates.rb +19 -17
- data/lib/vas/util/client.rb +4 -3
- data/lib/vas/util/link_utils.rb +4 -3
- data/lib/vas/vas_exception.rb +6 -6
- data/lib/vas/vfabric/agent_image.rb +14 -3
- data/lib/vas/vfabric/nodes.rb +16 -10
- data/lib/vas/vfabric/v_fabric.rb +6 -3
- data/lib/vas/vfabric_administration_server.rb +11 -11
- metadata +13 -17
- data/lib/vas/gemfire/agent_configuration.rb +0 -28
- data/lib/vas/gemfire/cache_server_configuration.rb +0 -28
- data/lib/vas/gemfire/locator_configuration.rb +0 -28
- data/lib/vas/rabbitmq/configuration.rb +0 -28
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,14 +12,15 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
|
15
|
+
|
17
16
|
|
18
17
|
module TcServer
|
19
18
|
|
20
19
|
# Used to enumerate an instance's pending configuration
|
21
20
|
class PendingConfigurations < Shared::PendingConfigurations
|
22
21
|
|
23
|
-
|
22
|
+
# @private
|
23
|
+
def initialize(location, client)
|
24
24
|
super(location, client, 'pending-configurations', PendingConfiguration)
|
25
25
|
end
|
26
26
|
|
@@ -29,7 +29,8 @@ module TcServer
|
|
29
29
|
# A configuration file that is pending
|
30
30
|
class PendingConfiguration < Shared::PendingConfiguration
|
31
31
|
|
32
|
-
|
32
|
+
# @private
|
33
|
+
def initialize(location, client)
|
33
34
|
super(location, client, 'group-instance', Instance)
|
34
35
|
end
|
35
36
|
|
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,18 +12,25 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
|
15
|
+
|
17
16
|
|
18
17
|
module TcServer
|
19
18
|
|
20
19
|
# Used to enumerate, create, and delete tc Server revision images.
|
21
20
|
class RevisionImages < Shared::MutableCollection
|
22
21
|
|
23
|
-
|
22
|
+
# @private
|
23
|
+
def initialize(location, client)
|
24
24
|
super(location, client, "revision-images", RevisionImage)
|
25
25
|
end
|
26
26
|
|
27
|
-
# Creates a
|
27
|
+
# Creates a new revision image by uploading a war file to the server
|
28
|
+
#
|
29
|
+
# @param path [String] the path of the WAR file
|
30
|
+
# @param name [String] the name of the revision image
|
31
|
+
# @param version [String] the version of the revision image
|
32
|
+
#
|
33
|
+
# @return [RevisionImage] the new revision image
|
28
34
|
def create(path, name, version)
|
29
35
|
RevisionImage.new(client.post_image(location, path, { :name => name, :version => version }), client)
|
30
36
|
end
|
@@ -34,16 +40,17 @@ module TcServer
|
|
34
40
|
# A revision image, i.e. a WAR file
|
35
41
|
class RevisionImage < Shared::Resource
|
36
42
|
|
37
|
-
#
|
43
|
+
# @return [String] the revision image's name
|
38
44
|
attr_reader :name
|
39
45
|
|
40
|
-
#
|
46
|
+
# @return [String] the revision image's version
|
41
47
|
attr_reader :version
|
42
48
|
|
43
|
-
#
|
49
|
+
# @return [Integer] the revision image's size
|
44
50
|
attr_reader :size
|
45
51
|
|
46
|
-
|
52
|
+
# @private
|
53
|
+
def initialize(location, client)
|
47
54
|
super(location, client)
|
48
55
|
|
49
56
|
@name = details["name"]
|
@@ -51,15 +58,16 @@ module TcServer
|
|
51
58
|
@size = details['size']
|
52
59
|
end
|
53
60
|
|
54
|
-
#
|
61
|
+
# @return [Revision[]] the revisions that have been created from this revision image
|
55
62
|
def revisions
|
56
63
|
revisions = []
|
57
64
|
Util::LinkUtils.get_link_hrefs(client.get(location), "group-revision").each { |revision_location| revisions << Revision.new(revision_location, client)}
|
58
65
|
revisions
|
59
66
|
end
|
60
67
|
|
61
|
-
|
62
|
-
|
68
|
+
# @return [String] a string representation of the revision image
|
69
|
+
def to_s
|
70
|
+
"#<#{self.class} name='#@name' version='#@version' size='#@size'>"
|
63
71
|
end
|
64
72
|
|
65
73
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,49 +12,53 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
|
15
|
+
|
17
16
|
|
18
17
|
module TcServer
|
19
18
|
|
20
19
|
# Used to enumerate, create, and delete application revisions.
|
21
20
|
class Revisions < Shared::MutableCollection
|
22
21
|
|
23
|
-
|
22
|
+
# @private
|
23
|
+
def initialize(location, client)
|
24
24
|
super(location, client, "revisions", Revision)
|
25
25
|
end
|
26
26
|
|
27
|
-
# Creates a
|
27
|
+
# Creates a revision by deploying the revision image
|
28
|
+
#
|
29
|
+
# @param revision_image [RevisionImage] the revision image to deploy
|
30
|
+
#
|
31
|
+
# @return [Revision] the new revision
|
28
32
|
def create(revision_image)
|
29
33
|
Revision.new(client.post(location, { :image => revision_image.location}, 'group-revision'), client)
|
30
34
|
end
|
31
35
|
|
32
36
|
end
|
33
37
|
|
34
|
-
# A revision of an
|
38
|
+
# A revision of an application
|
35
39
|
class Revision < Shared::StateResource
|
36
40
|
|
37
|
-
#
|
41
|
+
# @return [String] the revision's version
|
38
42
|
attr_reader :version
|
39
43
|
|
40
|
-
#
|
44
|
+
# @return [Application] the revision's application
|
41
45
|
attr_reader :application
|
42
46
|
|
43
|
-
|
47
|
+
# @return [RevisionImage] the revision image, if any, that was used to create the revision
|
48
|
+
attr_reader :revision_image
|
49
|
+
|
50
|
+
# @private
|
51
|
+
def initialize(location, client)
|
44
52
|
super(location, client)
|
45
53
|
|
46
54
|
@version = details['version']
|
47
|
-
@revision_image_location = Util::LinkUtils.get_link_href(details, 'revision-image')
|
48
55
|
@application = Application.new(Util::LinkUtils.get_link_href(details, 'group-application'), client)
|
56
|
+
|
57
|
+
revision_image_location = Util::LinkUtils.get_link_href(details, 'revision-image')
|
58
|
+
@revision_image = RevisionImage.new(revision_image_location, client) unless revision_image_location.nil?
|
49
59
|
end
|
50
60
|
|
51
|
-
#
|
52
|
-
def revision_image
|
53
|
-
if (!@revision_image_location.nil?)
|
54
|
-
RevisionImage.new(@revision_image_location, client)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# An array of the revision's individual node revisions
|
61
|
+
# @return [NodeRevision[]] the revision's node revisions
|
59
62
|
def node_revisions
|
60
63
|
node_revisions = []
|
61
64
|
Util::LinkUtils.get_link_hrefs(client.get(location), 'node-revision').each {
|
@@ -63,7 +66,8 @@ module TcServer
|
|
63
66
|
node_revisions
|
64
67
|
end
|
65
68
|
|
66
|
-
|
69
|
+
# @return [String] a string representation of the revision
|
70
|
+
def to_s
|
67
71
|
"#<#{self.class} version='#@version'>"
|
68
72
|
end
|
69
73
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,29 +12,31 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
#++
|
17
15
|
|
16
|
+
|
17
|
+
# API for administering tc Server
|
18
18
|
module TcServer
|
19
19
|
|
20
20
|
# The entry point to the API for administering tc Server
|
21
21
|
class TcServer
|
22
22
|
|
23
|
-
#
|
23
|
+
# @return [Groups] the tc Server groups
|
24
24
|
attr_reader :groups
|
25
25
|
|
26
|
-
#
|
26
|
+
# @return [InstallationImages] the tc Server installation images
|
27
27
|
attr_reader :installation_images
|
28
28
|
|
29
|
-
#
|
29
|
+
# @return [Nodes] the tc Server Nodes
|
30
30
|
attr_reader :nodes
|
31
31
|
|
32
|
-
#
|
32
|
+
# @return [RevisionImages] the tc Server revision images
|
33
33
|
attr_reader :revision_images
|
34
34
|
|
35
|
-
#
|
35
|
+
# @return [TemplateImages] the tc Server template images
|
36
36
|
attr_reader :template_images
|
37
37
|
|
38
|
-
|
38
|
+
# @private
|
39
|
+
def initialize(location, client)
|
39
40
|
|
40
41
|
json = client.get(location)
|
41
42
|
|
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,18 +12,25 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
|
15
|
+
|
17
16
|
|
18
17
|
module TcServer
|
19
18
|
|
20
19
|
# Used to enumerate, create, and delete tc Server template images.
|
21
20
|
class TemplateImages < Shared::MutableCollection
|
22
21
|
|
23
|
-
|
22
|
+
# @private
|
23
|
+
def initialize(location, client)
|
24
24
|
super(location, client, "template-images", TemplateImage)
|
25
25
|
end
|
26
26
|
|
27
|
-
# Creates a
|
27
|
+
# Creates a new template image by uploading a +.zip+ file to the server
|
28
|
+
#
|
29
|
+
# @param path [String] the path of the template image +.zip+ file
|
30
|
+
# @param name [String] the name of the template image
|
31
|
+
# @param version [String] the version of the template image
|
32
|
+
#
|
33
|
+
# @return [TemplateImage] the new template image
|
28
34
|
def create(path, name, version)
|
29
35
|
TemplateImage.new(client.post_image(location, path, { :name => name, :version => version }), client)
|
30
36
|
end
|
@@ -34,16 +40,17 @@ module TcServer
|
|
34
40
|
# A template image
|
35
41
|
class TemplateImage < Shared::Resource
|
36
42
|
|
37
|
-
#
|
43
|
+
# @return [String] the template image's name
|
38
44
|
attr_reader :name
|
39
45
|
|
40
|
-
#
|
46
|
+
# @return [String] the template image's version
|
41
47
|
attr_reader :version
|
42
48
|
|
43
|
-
#
|
49
|
+
# @return [String] the template image's size
|
44
50
|
attr_reader :size
|
45
51
|
|
46
|
-
|
52
|
+
# @private
|
53
|
+
def initialize(location, client)
|
47
54
|
super(location, client)
|
48
55
|
|
49
56
|
@name = details["name"]
|
@@ -51,15 +58,16 @@ module TcServer
|
|
51
58
|
@size = details['size']
|
52
59
|
end
|
53
60
|
|
54
|
-
#
|
61
|
+
# @return [Template[]] the templates that have been created from the template image
|
55
62
|
def templates
|
56
63
|
templates = []
|
57
64
|
Util::LinkUtils.get_link_hrefs(client.get(location), "template").each { |template_location| templates << Template.new(template_location, client)}
|
58
65
|
templates
|
59
66
|
end
|
60
67
|
|
61
|
-
|
62
|
-
|
68
|
+
# @return [String] a string representation of the template image
|
69
|
+
def to_s
|
70
|
+
"#<#{self.class} name='#@name' version='#@version' size='#@size'>"
|
63
71
|
end
|
64
72
|
|
65
73
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,18 +12,23 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
|
15
|
+
|
17
16
|
|
18
17
|
module TcServer
|
19
18
|
|
20
19
|
# Used to enumerate, create, and delete tc Server templates.
|
21
20
|
class Templates < Shared::MutableCollection
|
22
21
|
|
23
|
-
|
22
|
+
# @private
|
23
|
+
def initialize(location, client)
|
24
24
|
super(location, client, "templates", Template)
|
25
25
|
end
|
26
26
|
|
27
|
-
# Creates a template
|
27
|
+
# Creates a new template
|
28
|
+
#
|
29
|
+
# @param template_image [TemplateImage] the template image to use to create the template
|
30
|
+
#
|
31
|
+
# @return [Template] the new template
|
28
32
|
def create(template_image)
|
29
33
|
Template.new(client.post(location, { :image => template_image.location }, "template"), client)
|
30
34
|
end
|
@@ -34,34 +38,32 @@ module TcServer
|
|
34
38
|
# A tc Server template
|
35
39
|
class Template < Shared::Resource
|
36
40
|
|
37
|
-
#
|
41
|
+
# @return [String] the template's version
|
38
42
|
attr_reader :version
|
39
43
|
|
40
|
-
#
|
44
|
+
# @return [String] the template's name
|
41
45
|
attr_reader :name
|
42
46
|
|
43
|
-
#
|
47
|
+
# @return [TemplateImage] the template image, if any, that this template was created from
|
44
48
|
attr_reader :template_image
|
45
49
|
|
46
|
-
#
|
50
|
+
# @return [Installation] the template's installation
|
47
51
|
attr_reader :installation
|
48
52
|
|
49
|
-
|
53
|
+
# @private
|
54
|
+
def initialize(location, client)
|
50
55
|
super(location, client)
|
51
56
|
|
52
57
|
@version = details["version"]
|
53
58
|
@name = details["name"]
|
54
|
-
|
55
|
-
template_image_location = Util::LinkUtils.get_link_href(details, "template-image")
|
56
|
-
if (!template_image_location.nil?)
|
57
|
-
@template_image = TemplateImage.new(template_image_location, client)
|
58
|
-
end
|
59
|
-
|
60
59
|
@installation = Installation.new(Util::LinkUtils.get_link_href(details, 'installation'), client)
|
61
60
|
|
61
|
+
template_image_location = Util::LinkUtils.get_link_href(details, "template-image")
|
62
|
+
@template_image = TemplateImage.new(template_image_location, client) unless template_image_location.nil?
|
62
63
|
end
|
63
|
-
|
64
|
-
|
64
|
+
|
65
|
+
# @return [String] a string representation of the template
|
66
|
+
def to_s
|
65
67
|
"#<#{self.class} name='#@name' version='#@version'>"
|
66
68
|
end
|
67
69
|
|
data/lib/vas/util/client.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,10 +12,12 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
#++
|
17
15
|
|
18
|
-
module Util #:nodoc: all
|
19
16
|
|
17
|
+
# @private
|
18
|
+
module Util
|
19
|
+
|
20
|
+
# @private
|
20
21
|
class Client
|
21
22
|
|
22
23
|
TASK_POLLING_INTERVAL = 1
|
data/lib/vas/util/link_utils.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,10 +12,12 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
#++
|
17
15
|
|
18
|
-
module Util #:nodoc: all
|
19
16
|
|
17
|
+
# @private
|
18
|
+
module Util
|
19
|
+
|
20
|
+
# @private
|
20
21
|
class LinkUtils
|
21
22
|
|
22
23
|
def LinkUtils.get_link_hrefs(json, rel)
|
data/lib/vas/vas_exception.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
#--
|
2
1
|
# vFabric Administration Server Ruby API
|
3
2
|
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
4
3
|
#
|
@@ -13,18 +12,19 @@
|
|
13
12
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
13
|
# See the License for the specific language governing permissions and
|
15
14
|
# limitations under the License.
|
16
|
-
|
15
|
+
|
17
16
|
|
18
17
|
# Raised to indicate a failure has occurred when communicating with the vFabric Administration Server
|
19
18
|
class VasException < RuntimeError
|
20
19
|
|
21
|
-
#
|
20
|
+
# @return [Integer] the HTTP error code returned by the server
|
22
21
|
attr_reader :code
|
23
22
|
|
24
|
-
#
|
23
|
+
# @return [String[]] the error messages, if any, returned by the server
|
25
24
|
attr_reader :messages
|
26
|
-
|
27
|
-
|
25
|
+
|
26
|
+
# @private
|
27
|
+
def initialize(messages, code=nil)
|
28
28
|
@code = code
|
29
29
|
@messages = messages
|
30
30
|
end
|