app42 0.5.4 → 0.5.5

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
  SHA1:
3
- metadata.gz: 0f2e93237bd27606f1fce898d696cc584ecf0c81
4
- data.tar.gz: 22306a898c0e237d65af4729b03119bc78943c39
3
+ metadata.gz: fcc7ecf3e3ddf5ba700f7e049b0bcdd7f7b5131b
4
+ data.tar.gz: e062a8719656e2f55035cc52151812d4bce24a77
5
5
  SHA512:
6
- metadata.gz: eff3f34399f7a747fc522297eb2a2270c716c1fbe9c11064b2e52e055b74dd69ae1edb3685a568025f8cb3a2e6b9506ec275bdd797be0ad6d9c434eded1fa8dd
7
- data.tar.gz: 5716d721469c36dfe52a936e225853fdb78a56a2dea06c80bbd94e8cab8bc7e12358bac0e88911fb02fe1685437881166cd2883e02b9369406a040c6223308b6
6
+ metadata.gz: dd24b119dc24f8d55246eab5f6f56d116c10a3b9e28c7f9d02475a2019b341717794aeafbc356a1732d0a2a1bc1819b9c1ebb6891dde0f41dcf9fd15528f7571
7
+ data.tar.gz: 769c63165bb11c3effec28e124d8c4848a925d592eb7ff7c7f4a0c9eb79d6925e3a1a88050cbfd06d1f11989ec95f2f1638323367f5dd36e642e569d905b18ec
@@ -5,7 +5,7 @@ module App42
5
5
 
6
6
  # app42 host url
7
7
  # FIXME, need to fix before release
8
- HOST = "http://54.218.127.212:8081/paas/#{VERSION}"
8
+ HOST = "http://api.app42paas.com/paas/#{VERSION}"
9
9
 
10
10
  # app42 configuration directory
11
11
  CONFIG_DIR = "~/.app42".freeze
@@ -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
@@ -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
@@ -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, 'info', 'memory'
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
@@ -3,7 +3,7 @@ module App42
3
3
  module VERSION
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- TINY = 4
6
+ TINY = 5
7
7
  PRE = "alpha"
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app42
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShepHertz