mio-config 2.35.0 → 2.36.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.
- checksums.yaml +4 -4
- data/lib/mio/model/rename.rb +36 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 184a84a8ca4d07568de20768113a2685d2a1e305
|
4
|
+
data.tar.gz: 004e9040b61a788ab6adde0937f47275642f2d60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7316ef5c7e7310a1729aaf19628ad68c8e07e165f9f2bfc3d8967f9b536b9d5c7cf60fc5e0618437cb398917811df18b13227d7a3fb7fccf2af2ec7bcbcee8fa
|
7
|
+
data.tar.gz: 09df5d018062bd0388680be66697d80f01c4f1d370be53bdeb8495f5dd96c2b6c652cd6ebffde0772edc7f8b81a6df517b2ad75d778b651d454c66fdfa99b71c
|
@@ -0,0 +1,36 @@
|
|
1
|
+
class Mio
|
2
|
+
class Model
|
3
|
+
class Rename < Model
|
4
|
+
set_resource :actions
|
5
|
+
field :name, String, 'Name of the Import Action'
|
6
|
+
field :visibility, Array, 'Ids of the accounts which may see the import action', [4]
|
7
|
+
field :runRuleExpression, String, 'Job run rule expression', ''
|
8
|
+
field :preserveFileExtension, Symbol, 'preserve file extention of the file path', false
|
9
|
+
field :filePath, String, 'File path', ''
|
10
|
+
|
11
|
+
field :enable, Symbol, ':true or :false', :true
|
12
|
+
field :start, Symbol, ':true or :false', :true
|
13
|
+
|
14
|
+
def create_hash
|
15
|
+
plugin = 'tv.nativ.mio.enterprise.execution.action.file.impl.rename.AssetRenameCommand'
|
16
|
+
{name: @args.name,
|
17
|
+
pluginClass: plugin,
|
18
|
+
visibilityIds: @args.visibility,
|
19
|
+
'type': 'rename',
|
20
|
+
'runRuleExpression': @args.runRuleExpression
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
def config_hash
|
25
|
+
{
|
26
|
+
"file": { "file-name": { "value": @args.filePath,
|
27
|
+
"isExpression": false
|
28
|
+
},
|
29
|
+
"preserve-file-extension": @args.preserveFileExtension
|
30
|
+
}
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mio-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jspc
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- "./lib/mio/model/metadatadefinition/definition.rb"
|
128
128
|
- "./lib/mio/model/metadatadefinition/option.rb"
|
129
129
|
- "./lib/mio/model/place_holder_group_asset_action.rb"
|
130
|
+
- "./lib/mio/model/rename.rb"
|
130
131
|
- "./lib/mio/model/s3.rb"
|
131
132
|
- "./lib/mio/model/variant.rb"
|
132
133
|
- "./lib/mio/model/wait_groovy_script.rb"
|