wildbit / beanstalkapp Goto Github PK
View Code? Open in Web Editor NEWOfficial wrapper for Beanstalk API.
Home Page: http://api.beanstalkapp.com
License: MIT License
Official wrapper for Beanstalk API.
Home Page: http://api.beanstalkapp.com
License: MIT License
at the moment we have to put the following at the top of any beanstalk API scripts:
Beanstalk::API::Base.setup(
:domain => "subdomain",
:login => "username",
:password => "password"
)
it would be good if this could be abstracted out, so that the gem reads the credentials from a file (say ~/.beanstalk) and inserts it automatically
this could be extended if the .beanstalk file could contain multiple auth credentials with something like
Beanstalk::API::Base.setup(
:account => "<an account tag assigned by user>",
)
where the beanstalk file has some kind of structure (maybe yaml) to store domain, user and pass pairs
this would help improve the security of deploy scripts and also allows users to put scripts in version control without exposing auth credentials of a specific user and also allows each user to run api tasks as there user (eg deploys etc)
I have come to use the gem for the first time and keep getting activeresource errors. Is there a way of using this gem with activeresource 3.0.3, alongside Rails 3?
Bundler could not find compatible versions for gem "activeresource":
In Gemfile:
rails (= 3.0.3) depends on
activeresource (= 3.0.3)
activeresource (2.3.5)
I have code that matches exactly whats in the README and i get:
/Users/jcollins/.rvm/gems/ruby-2.3.3/gems/activeresource-2.3.5/lib/active_resource/base.rb:402:in `singleton class': undefined method `attr_accessor_with_default' for #<Class:ActiveResource::Base> (NoMethodError)
from /Users/jcollins/.rvm/gems/ruby-2.3.3/gems/activeresource-2.3.5/lib/active_resource/base.rb:230:in `<class:Base>'
from /Users/jcollins/.rvm/gems/ruby-2.3.3/gems/activeresource-2.3.5/lib/active_resource/base.rb:224:in `<module:ActiveResource>'
from /Users/jcollins/.rvm/gems/ruby-2.3.3/gems/activeresource-2.3.5/lib/active_resource/base.rb:5:in `<top (required)>'
from /Users/jcollins/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/jcollins/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/jcollins/.rvm/gems/ruby-2.3.3/gems/activeresource-2.3.5/lib/active_resource.rb:35:in `<top (required)>'
from /Users/jcollins/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/jcollins/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/jcollins/.rvm/gems/ruby-2.3.3/gems/beanstalkapp-1.6.1/lib/beanstalkapp.rb:1:in `<top (required)>'
from /Users/jcollins/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `require'
from /Users/jcollins/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
from /Users/jcollins/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from ./test.rb:3:in `<main>'
This is ruby 2.3.3 as it says. Any ideas?
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.