Permalink
Browse files

Send previously provisioned config with data migration.

  • Loading branch information...
1 parent 5676380 commit a89bf31c63685d1af2cb48c78af02b1a48c13a55 Glenn Gillen committed May 23, 2012
Showing with 9 additions and 5 deletions.
  1. +2 −2 LICENSE
  2. +2 −2 addons-client.gemspec
  3. +4 −0 lib/addons-client/client.rb
  4. +1 −1 lib/addons-client/version.rb
View
@@ -1,4 +1,4 @@
-Copyright (c) 2012 Chris Continanza
+Copyright (c) 2012 Chris Continanza, Glenn Gillen
MIT License
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -3,8 +3,8 @@ $LOAD_PATH.unshift File.dirname(File.expand_path('.', __FILE__)) + '/lib'
require "addons-client/version"
Gem::Specification.new do |gem|
- gem.authors = ["Chris Continanza"]
- gem.email = ["csquared@gmail.com"]
+ gem.authors = ["Chris Continanza", "Glenn Gillen"]
+ gem.email = ["csquared@gmail.com", "me@glenngillen.com"]
gem.description = %q{Addons Platform API client}
gem.summary = %q{Allows platfomrs to provision, deprovision, and change plans for add-on resources.}
gem.homepage = ""
@@ -33,6 +33,10 @@ def self.provision!(slug, opts = {})
end_at.utc
payload.merge! :end_at => end_at.to_s
end
+ if config = opts[:config]
+ config = config.to_json unless config.is_a? String
+ payload.merge! :config => config
+ end
resource.post payload, :accept => :json
end
end
@@ -1,5 +1,5 @@
module Addons
class Client
- VERSION = "0.0.2"
+ VERSION = "0.0.3"
end
end

0 comments on commit a89bf31

Please sign in to comment.