easy-resources-adam 0.1.3 → 0.2.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b953f7d9fbbdb366a62f0f0e5156eb8065eff959e4994ecad4f849ad5a2c24a
|
4
|
+
data.tar.gz: 772e6434bbb5daacef91e757e73ad3a63390f9f885540bf0dd0351b952d7c6f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653844e4fbfad78c786c4dae018d7e2524a4dbe68645a7b94e9d0d39fad564a614a190cf81b2427fe84934b3e3c5d6d1dd63216b96a305bf3305c361f335ad53
|
7
|
+
data.tar.gz: 7a5dc1076c3d7abe7f4b89edc21f3a362bbcea7c16cce4a5fa3aa31cee3886b931d115fc0b0a7475c49b71ab387b46f2b682b8b3aa433a3b513617cd948e160b
|
@@ -3,7 +3,10 @@ module Easy
|
|
3
3
|
module Adam
|
4
4
|
class Server < ::Easy::Resource
|
5
5
|
|
6
|
-
self.element_name
|
6
|
+
self.element_name = "server"
|
7
|
+
self.include_root_in_json = true
|
8
|
+
|
9
|
+
has_many :web_applications, class_name: 'Easy::Resources::Adam::WebApplication'
|
7
10
|
|
8
11
|
def self.find_me_by_name(name)
|
9
12
|
first(params: { w: "me|=|1,name|=|#{name}" })
|
@@ -3,7 +3,10 @@ module Easy
|
|
3
3
|
module Adam
|
4
4
|
class TaskExecution < ::Easy::Resource
|
5
5
|
|
6
|
-
|
6
|
+
has_many :task_execution_commands, class_name: 'Easy::Resources::Adam::TaskExecutionCommand'
|
7
|
+
|
8
|
+
self.element_name = "task_execution"
|
9
|
+
self.include_root_in_json = true
|
7
10
|
|
8
11
|
end
|
9
12
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Easy
|
2
|
+
module Resources
|
3
|
+
module Adam
|
4
|
+
class TaskExecutionCommand < ::Easy::Resource
|
5
|
+
|
6
|
+
belongs_to :task_execution, class_name: 'Easy::Resources::Adam::TaskExecution'
|
7
|
+
|
8
|
+
self.element_name = "task_execution_command"
|
9
|
+
self.include_root_in_json = true
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -3,7 +3,19 @@ module Easy
|
|
3
3
|
module Adam
|
4
4
|
class WebApplication < ::Easy::Resource
|
5
5
|
|
6
|
-
self.element_name
|
6
|
+
self.element_name = "web_application"
|
7
|
+
self.include_root_in_json = true
|
8
|
+
|
9
|
+
belongs_to :server, class_name: 'Easy::Resources::Adam::Server'
|
10
|
+
has_many :task_executions, class_name: 'Easy::Resources::Adam::TaskExecution'
|
11
|
+
|
12
|
+
def self.find_by_guid(guid)
|
13
|
+
first(params: { w: "guid|=|#{guid}" })
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.find_by_name(name)
|
17
|
+
first(params: { w: "name|=|#{name}" })
|
18
|
+
end
|
7
19
|
|
8
20
|
end
|
9
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy-resources-adam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- petr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- lib/easy/resources/adam/railtie.rb
|
53
53
|
- lib/easy/resources/adam/server.rb
|
54
54
|
- lib/easy/resources/adam/task_execution.rb
|
55
|
+
- lib/easy/resources/adam/task_execution_command.rb
|
55
56
|
- lib/easy/resources/adam/version.rb
|
56
57
|
- lib/easy/resources/adam/web_application.rb
|
57
58
|
homepage: https://www.easysoftware.com
|