Skip to content

Instantly share code, notes, and snippets.

@mccrory
Created November 20, 2010 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mccrory/708150 to your computer and use it in GitHub Desktop.
Save mccrory/708150 to your computer and use it in GitHub Desktop.
Open PaaS / VMforce appears to be called AppCloud
# This class captures the common interactions with AppCloud that can be shared by different
# clients. Clients that use this class are the vmc CLI and the integration test automation.
# TBD - ABS: This is currently a minimal extraction of methods to tease out
# the interactive aspects of the vmc CLI from the AppCloud API calls.
#-----------------
# Send resource fingerprints to the cloud controller
response = HTTPClient.post resources_uri, fingerprints.to_json, auth_hdr
appcloud_resources = nil
if response.status == 200
appcloud_resources = JSON.parse(response.content)
# we will use the exploded version of the files here to whip through and delete what we
# will have appcloud fill in for us.
appcloud_resources.each { |resource| FileUtils.rm_f resource['fn'] }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment