Created
November 20, 2010 20:56
-
-
Save mccrory/708150 to your computer and use it in GitHub Desktop.
Open PaaS / VMforce appears to be called AppCloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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