megam_api 0.28 → 0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17acb6b71183af27baf0dcc372b6910bbcb8d6b5
4
- data.tar.gz: ada8515a2f3826bce2624bbda98ad7774c2adde5
3
+ metadata.gz: d452269009012990f2739a8c82d92c6d5f567362
4
+ data.tar.gz: 45dd6909502f0c98a47aab0bababa2901d3196ba
5
5
  SHA512:
6
- metadata.gz: ed0f7cc8517aa3ceebfa2419c28edcbb99e6dcb779ce354981bcb2f317d137d8c1a948d3382c77eecc1d5aedd0d4e33af9e737cff51c3b0cec4ef35e8f69a12b
7
- data.tar.gz: 67e5368114612b9cdafaea581f51842ee6cefde7c88cc500fc29ce35eef765c4f5ac78fec90dbf8da020cef20bb43c0ed44fd49df99144156739287d760278c0
6
+ metadata.gz: cefc172c14f3c48ecd722f971def7e6337dfe5b96ebc5e03bf88ed53c90d02938b835689a22c46f8331164ce4d8aac52d715fb772bb58f2791dd6a444c97890c
7
+ data.tar.gz: ab6ea0704f33eec9c4b132238dd052e652ae3a85008cb0f666046e9b50fc710e5c0fe00b0fb3d14913eefd6dd7a913bfb46340f1a4e4337ee483e81b5ad83492
@@ -32,6 +32,16 @@ module Megam
32
32
  :body => @options[:body]
33
33
  )
34
34
  end
35
+
36
+ def push_csar(id)
37
+ @options = {:path => "/csars/push/#{id}",:body => ""}.merge(@options)
38
+
39
+ request(
40
+ :expects => 201,
41
+ :method => :get,
42
+ :body => @options[:body]
43
+ )
44
+ end
35
45
 
36
46
  #Yet to be tested
37
47
  # DELETE /marketplacess/:node_id
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.28"
3
+ VERSION = "0.29"
4
4
  end
5
5
  end
@@ -164,6 +164,12 @@ module Megam
164
164
  csarslf = self.new(tmp_email, tmp_api_key)
165
165
  csarslf.megam_rest.get_csars
166
166
  end
167
+
168
+ #push csar (links)
169
+ def self.push(tmp_email=nil, tmp_api_key=nil, csar_id)
170
+ csarslf = self.new(tmp_email, tmp_api_key)
171
+ csarslf.megam_rest.push_csar(csar_id)
172
+ end
167
173
 
168
174
  def to_s
169
175
  Megam::Stuff.styled_hash(to_hash)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.28'
4
+ version: '0.29'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon