frodenas / cloudfoundry-client Goto Github PK
View Code? Open in Web Editor NEWThis is a Ruby wrapper for the CloudFoundry API, the industry’s first open Platform as a Service (PaaS) offering.
License: MIT License
This is a Ruby wrapper for the CloudFoundry API, the industry’s first open Platform as a Service (PaaS) offering.
License: MIT License
Hi,
my name is Keagan Mendoza,
I'm from Intel Corporation, and I am trying to use cloudfoundry and the cloudfoundry console.
Sometimes when I do a vmc push, or I deploy and app from the console, when I start the app, I get this error message on the console, or the command line, but still my app starts in good shape. Do you know why this is, or a way I could ignore this error message?
Thanks,
Keagan Mendoza
Hi, I'm trying to do a method for stopping instances through cloudfoundry-client, my code looks like this:
require 'cloudfoundry'
class BaseCloudFoundry < CloudFoundry::Client
def stop_app(appname)
app = app_info(appname)
app[:state] = "STOPPED"
update_app(appname,app)
end
end
When I call the method I have this error:
to_json' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:301:in
block in json_transform'each' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:294:in
json_transform'to_json' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:246:in
generate'generate' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/common.rb:345:in
dump'encode' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/faraday_middleware-0.8.8/lib/faraday_middleware/request/encode_json.rb:21:in
block in call'match_content_type' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/faraday_middleware-0.8.8/lib/faraday_middleware/request/encode_json.rb:20:in
call'call' /home/user/.rvm/gems/ruby-1.9.2-p320@global/gems/faraday-0.8.1/lib/faraday/request/multipart.rb:13:in
call'run_request' /home/user/.rvm/gems/ruby-1.9.2-p320@global/gems/faraday-0.8.1/lib/faraday/connection.rb:99:in
put'request' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/request.rb:32:in
put'update_app' /home/user/fakepath/lib/BaseCloudFoundry.rb:14:in
stop_app'What can be the problem? Thanks.
when I use the cloudfoundry-client in my rails app, step 1, gem install cloudfoundry-client,step 2, modify the Gemfile of app, add line " gem 'cloudfoundry-client ' " ; step 3, bundle install . they all works fine.
and then, start the webrick server, I got the error:
/var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:6:in <module:Response>': uninitialized constan t CloudFoundry::Client::Response::Faraday (NameError) from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:4:in
class:Client'
from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:2:in <module:CloudFoundry>' from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:1:in
<top (required)>'
from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client.rb:5:in require' from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client.rb:5:in
<top (required)>'
When i create an app , i want to upload app's source code by using gitlab, but i find that if i crate an app this way, the ajax request will down after 30 seconds. If the app's source code is small enough, like a "hello world" program, this process will be complete with in 30 seconds, the issue above will not occur. I checked the source code which makes me confused. In the utils.rb, there is a method called git_clone, in this method ,we use "EM.system(cmd) "(cmd = "#{git_binary} --git-dir=#{repodir} clone --quiet --branch=#{gitbranch} #{gitrepo} #{repodir}") to download app's files from github.com. but i don't understand the code "git_clone_result = Fiber.yield" ,and this line of code will occur the issue above.
Hi, I'm trying to create an application through the "create_app" method but I'm having this error:
CloudFoundry::Client::Exception::BadRequest (Error 308: Invalid framework description: 'NONE'):
The manifest I'm using is created from a manifest.yml generated through VMC and converted into a hash using YAML.to_hash, this is the hash I'm using:
{:name => 'name', :framework => {:name => 'sinatra', :info => {:mem => '128M', :description => 'Sinatra Application' , :exec => {:url => 'name.pruebas.cloudfoundry.me', :mem => '128M', :instances => '1'}}}}
It's a problem on my hash or in the client?
Thanks, greetings
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.