app42 0.5.4 → 0.5.5
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/app42/base/constants.rb +1 -1
- data/lib/app42/command/app.rb +1 -1
- data/lib/app42/command/base.rb +2 -2
- data/lib/app42/command/config.rb +2 -2
- data/lib/app42/command/service.rb +1 -1
- data/lib/app42/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcc7ecf3e3ddf5ba700f7e049b0bcdd7f7b5131b
|
4
|
+
data.tar.gz: e062a8719656e2f55035cc52151812d4bce24a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd24b119dc24f8d55246eab5f6f56d116c10a3b9e28c7f9d02475a2019b341717794aeafbc356a1732d0a2a1bc1819b9c1ebb6891dde0f41dcf9fd15528f7571
|
7
|
+
data.tar.gz: 769c63165bb11c3effec28e124d8c4848a925d592eb7ff7c7f4a0c9eb79d6925e3a1a88050cbfd06d1f11989ec95f2f1638323367f5dd36e642e569d905b18ec
|
data/lib/app42/base/constants.rb
CHANGED
data/lib/app42/command/app.rb
CHANGED
@@ -53,7 +53,7 @@ module App42
|
|
53
53
|
os = get_os_for_app iaas, vm_type, runtime, framework, webserver
|
54
54
|
# FIXME, may be configure out later
|
55
55
|
# instance = get_instance 'new_vm'
|
56
|
-
vmconfig = get_vmconfig vm_type, iaas
|
56
|
+
vmconfig = get_vmconfig 'info/app',vm_type, iaas
|
57
57
|
setup_infra_res = App42::Command::Base.new.create_infrastructure app_name, iaas, vm_type, runtime, framework, webserver, os, vmconfig
|
58
58
|
exit! if setup_infra_res
|
59
59
|
end
|
data/lib/app42/command/base.rb
CHANGED
@@ -142,9 +142,9 @@ module App42
|
|
142
142
|
end
|
143
143
|
|
144
144
|
# get supported vm configuration by app42paas
|
145
|
-
def get_vmconfig vm_type, iaas
|
145
|
+
def get_vmconfig resource, vm_type, iaas
|
146
146
|
vmconfig_hash = {}
|
147
|
-
vmconfig = App42::Command::Config.new.get_vmconfig(vm_type, iaas)
|
147
|
+
vmconfig = App42::Command::Config.new.get_vmconfig(resource, vm_type, iaas)
|
148
148
|
|
149
149
|
vmconfig['vmconfig'].select {|each_vmcf| vmconfig_hash["#{each_vmcf['id']}"] = each_vmcf['memory'] + ' ' + each_vmcf['memoryUnit']}
|
150
150
|
vm_cf = input "Memory Limit", vmconfig_hash.values, true
|
data/lib/app42/command/config.rb
CHANGED
@@ -83,11 +83,11 @@ module App42::Command
|
|
83
83
|
#
|
84
84
|
# return list of vm_configuration(memory)
|
85
85
|
#
|
86
|
-
def get_vmconfig vm_type, iaas
|
86
|
+
def get_vmconfig resource, vm_type, iaas
|
87
87
|
query_params = params
|
88
88
|
query_params.store('vmType', vm_type)
|
89
89
|
query_params.store('iaas', iaas)
|
90
|
-
build_get_request query_params,
|
90
|
+
build_get_request query_params, "#{resource}", 'memory'
|
91
91
|
end
|
92
92
|
|
93
93
|
#
|
@@ -83,7 +83,7 @@ module App42::Command
|
|
83
83
|
|
84
84
|
os = get_os_for_service iaas, vm_type, service
|
85
85
|
|
86
|
-
vmconfig = get_vmconfig vm_type, iaas
|
86
|
+
vmconfig = get_vmconfig 'info/service', vm_type, iaas
|
87
87
|
|
88
88
|
create_service service, service_name , database, vm_type, iaas, vmconfig, os
|
89
89
|
|
data/lib/app42/version.rb
CHANGED