Module: Cloudwalk

Defined in:
lib/cloudwalk/rake_task.rb,
lib/cloudwalk/config.rb,
lib/cloudwalk/cw_file_json.rb,
lib/cloudwalk/posxml_version.rb,
lib/cloudwalk/manager_exception.rb,
lib/cloudwalk/posxml_application.rb

Overview

lib/pos/base.rb: json_versions = ‘curl -k -X GET "https://#host/v1/apps/posxml/#cw_main_id/versions?access_token=#token"` lib/pos/package_util.rb: json_version = `curl -k -X GET "https://#host/v1/apps/posxml/#app_id/versions/#version_id?access_token=#token"` lib/pos/package_util.rb: app_json = `curl -k -X GET "https://#host/v1/apps/posxml/#app_id/?access_token=#token"` lib/pos/package_util.rb: file_json = `curl -k -X GET "https://#host/v1/files/#file_id/?access_token=#token"`

  • Lock is a file that contains the id of applications.

What to do:

  1. Check if lock exists and create it.

  • If not update create .lock by checking applications

  1. Check if all applications has an id.

Commands

  • “cloudwalk app upgrade-version cw_main.xml 1.10.10..1.2.0”

    • Can be used for a module

    • Change Cwfile.json and Cwfile.json.lock

  • rake cloudwalk:deploy

  • Read Cwfile.json

  • Check if apps and versions are ok

Defined Under Namespace

Classes: Config, CwFileJson, ManagerException, PosxmlApplication, PosxmlVersion, RakeTask