simple_stack 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec7852762d8fb5388f29dbcb6d0c889958c4409e
4
- data.tar.gz: 9b6c5482c4d1ff94cf126a6656292b8bf92f5f69
3
+ metadata.gz: d2ab06e2f68d7baabbf13ba6b7405be5997e2eb2
4
+ data.tar.gz: 8839f588d7b964bed0eca6bb49f87835d79b16f4
5
5
  SHA512:
6
- metadata.gz: 4cf1159e2b0ba0c68cd11bd2f587e314959a37e5999b69683af636fb790efe93e76c25e6ca5acafdc2cb694e2bb8073ffaadee48128f5c70cd3db142838f0d15
7
- data.tar.gz: 0572cb6541a74fa415a9c836b18e54dd5581465fb07ef5e9eedf5b95ed24342b285688046cb5b44d39ab67ac8490c72db775b45e77e8e8fadd870efd148fc508
6
+ metadata.gz: 87f4e6cded627c7012390c129bb914d1a345509b5503adebc6e471502444e8ed68052571be022767ce73d3f40eb485d68e87909f7dd7ab7364a72c737a164e2a
7
+ data.tar.gz: 029587756cb4f56e22d62f2a6bfeb398fc6b8b68f8fdb4be20eec77f6cc3534eaa00c9196f4fda21ebe08fb801390a5f2603604a6d991b4a5fc5eb102f45ade0
@@ -13,6 +13,7 @@ require "simple_stack/storage"
13
13
  require "simple_stack/guest"
14
14
  require "simple_stack/snapshot"
15
15
  require "simple_stack/network_interface"
16
+ require "simple_stack/network"
16
17
  require "simple_stack/disk"
17
18
 
18
19
  module SimpleStack
@@ -54,6 +54,10 @@ module SimpleStack
54
54
  cached_attributes[:guests] ||= SimpleStack::Collection.new self, self, "#{url}/guests", SimpleStack::Guest
55
55
  end
56
56
 
57
+ def networks
58
+ cached_attributes[:networks] ||= SimpleStack::Collection.new self, self, "#{url}/networks", SimpleStack::Network
59
+ end
60
+
57
61
  def import(opts={})
58
62
  file = File.open(opts[:from], "rb")
59
63
 
@@ -0,0 +1,8 @@
1
+ module SimpleStack
2
+ class Network < Entity
3
+ def networks
4
+ cached_attributes[:networks] ||= SimpleStack::Collection.new hypervisor, self, "#{url}/networks", SimpleStack::Network
5
+ end
6
+
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleStack
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Morello
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-06 00:00:00.000000000 Z
12
+ date: 2015-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: httparty
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  description: A simple gem to work with simplestack project
@@ -47,23 +47,24 @@ executables: []
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
- - lib/simple_stack/snapshot.rb
51
- - lib/simple_stack/exception.rb
52
- - lib/simple_stack/network_interface.rb
53
- - lib/simple_stack/version.rb
54
- - lib/simple_stack/disk.rb
50
+ - Gemfile
51
+ - README.markdown
52
+ - Rakefile
53
+ - lib/simple_stack.rb
54
+ - lib/simple_stack/cacheable.rb
55
55
  - lib/simple_stack/collection.rb
56
56
  - lib/simple_stack/connection.rb
57
- - lib/simple_stack/hypervisor.rb
57
+ - lib/simple_stack/disk.rb
58
58
  - lib/simple_stack/entity.rb
59
- - lib/simple_stack/storage.rb
60
- - lib/simple_stack/host.rb
61
- - lib/simple_stack/cacheable.rb
59
+ - lib/simple_stack/exception.rb
62
60
  - lib/simple_stack/guest.rb
63
- - lib/simple_stack.rb
64
- - Rakefile
65
- - README.markdown
66
- - Gemfile
61
+ - lib/simple_stack/host.rb
62
+ - lib/simple_stack/hypervisor.rb
63
+ - lib/simple_stack/network.rb
64
+ - lib/simple_stack/network_interface.rb
65
+ - lib/simple_stack/snapshot.rb
66
+ - lib/simple_stack/storage.rb
67
+ - lib/simple_stack/version.rb
67
68
  - simple_stack.gemspec
68
69
  homepage: https://github.com/locaweb/ruby-simplestack-client
69
70
  licenses: []
@@ -74,17 +75,17 @@ require_paths:
74
75
  - lib
75
76
  required_ruby_version: !ruby/object:Gem::Requirement
76
77
  requirements:
77
- - - '>='
78
+ - - ">="
78
79
  - !ruby/object:Gem::Version
79
80
  version: '0'
80
81
  required_rubygems_version: !ruby/object:Gem::Requirement
81
82
  requirements:
82
- - - '>='
83
+ - - ">="
83
84
  - !ruby/object:Gem::Version
84
85
  version: '0'
85
86
  requirements: []
86
87
  rubyforge_project: simple_stack
87
- rubygems_version: 2.0.3
88
+ rubygems_version: 2.2.2
88
89
  signing_key:
89
90
  specification_version: 4
90
91
  summary: A simple gem to work with simplestack project