mystro-common 0.3.1 → 0.3.3.rc0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,12 @@
1
1
  ### Changelog
2
2
 
3
+ ##### v0.3.3.rc0:
4
+ * clean up plugin handling for gem-based plugins. minor tweak to compute.volume processing (this needs more work)
5
+ * some debug logging and tweaks around compute volumes
6
+
7
+ ##### v0.3.2:
8
+ * use the released version of crackin
9
+
3
10
  ##### v0.3.1:
4
11
  * crackin release working: FIRST! :)
5
12
 
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'damsel', path: '../../damsel'
7
- gem 'crackin', path: '../../crackin'
7
+ gem 'crackin'
8
8
 
9
9
  gem 'rake', '10.0.4'
10
10
  gem 'awesome_print'
@@ -82,13 +82,15 @@ module Mystro
82
82
  devices = map.keys
83
83
  last = devices.last
84
84
  root = image.root_device_name
85
+ Mystro::Log.debug "ROOT: #{root.inspect}"
85
86
  model.volumes.each do |volume|
87
+ Mystro::Log.debug "VOLUME: #{volume.inspect}"
86
88
  dev = volume.device || volume.name
87
- if dev == :root && image.root_device_type != "ebs"
88
- Mystro::Log.error "trying to change ephemeral root volume"
89
- return
90
- end
91
89
  if dev == :root || dev == 'root'
90
+ if image.root_device_type != "ebs"
91
+ Mystro::Log.error "trying to change ephemeral root volume"
92
+ raise "trying to change ephemeral root volume"
93
+ end
92
94
  dev = root
93
95
  unless map[dev]
94
96
  Mystro::Log.error "something wrong, trying to change root volume: #{volume.inspect}"
@@ -113,10 +115,11 @@ module Mystro
113
115
  'virtualName' => volume.virtual,
114
116
  }
115
117
  else
116
- map[dev]['volumeSize'] = volume.size.to_s if volume.size
118
+ map[dev]['volumeSize'] = volume.size.to_s if volume.size.to_i > 0
117
119
  map[dev]['snapshotId'] = volume.snapshot if volume.snapshot
118
120
  map[dev]['deleteOnTermination'] = volume.dot if volume.dot
119
121
  end
122
+ Mystro::Log.debug "VOLUME: => (#{dev}) #{map[dev].inspect}"
120
123
  end
121
124
  change_keys(map_untransform(map))
122
125
  end
@@ -3,8 +3,8 @@ module Mystro
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 3
6
- TINY = 1
7
- TAG = nil
6
+ TINY = 3
7
+ TAG = 'rc0'
8
8
  LIST = [MAJOR, MINOR, TINY, TAG]
9
9
  STRING = LIST.compact.join(".")
10
10
  end
@@ -26,13 +26,28 @@ module Mystro
26
26
  def load(plugins={ })
27
27
  list = plugins.reject {|k, v| k == 'disabled'}
28
28
  list.each do |plugin, data|
29
- begin
30
- f = "#{Mystro.directory}/plugins/#{plugin}"
31
- Mystro::Log.debug "loading plugin: #{plugin} #{f}"
32
- require f
33
- rescue LoadError, StandardError => e
34
- Mystro::Log.error "error while loading plugin: #{plugin}: #{e.message} at #{e.backtrace.first}"
29
+ load_plugin(plugin, data)
30
+ end
31
+ end
32
+
33
+ def load_plugin(plugin, data)
34
+ begin
35
+ # load library, if it exists
36
+ # this is for plugins in gems
37
+ require "mystro/plugin/#{plugin}"
38
+ rescue => e
39
+ Mystro::Log.debug "load plugin: #{plugin}: #{e.message}"
40
+ end
41
+
42
+ begin
43
+ # load file in config directory if it exists
44
+ file = "#{Mystro.directory}/plugins/#{plugin}"
45
+ if File.exists?("#{file}.rb")
46
+ Mystro::Log.debug "plugin: #{plugin} = #{file}"
47
+ require file
35
48
  end
49
+ rescue LoadError, StandardError => e
50
+ Mystro::Log.error "load plugin: #{plugin}: #{e.message}"
36
51
  end
37
52
  end
38
53
 
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mystro-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3.rc0
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - Shawn Catanzarite
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2014-02-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: fog
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: unf
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: yell
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: hashie
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: activesupport
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - '='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - '='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: ipaddress
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ! '>='
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ! '>='
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: erubis
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ! '>='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ! '>='
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: damsel
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ~>
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ~>
123
140
  - !ruby/object:Gem::Version
@@ -193,26 +210,30 @@ files:
193
210
  - test/config.yml
194
211
  homepage: http://github.com/mystro
195
212
  licenses: []
196
- metadata: {}
197
213
  post_install_message:
198
214
  rdoc_options: []
199
215
  require_paths:
200
216
  - lib
201
217
  required_ruby_version: !ruby/object:Gem::Requirement
218
+ none: false
202
219
  requirements:
203
220
  - - ! '>='
204
221
  - !ruby/object:Gem::Version
205
222
  version: '0'
223
+ segments:
224
+ - 0
225
+ hash: -2211444181715532034
206
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
+ none: false
207
228
  requirements:
208
- - - ! '>='
229
+ - - ! '>'
209
230
  - !ruby/object:Gem::Version
210
- version: '0'
231
+ version: 1.3.1
211
232
  requirements: []
212
233
  rubyforge_project:
213
- rubygems_version: 2.1.10
234
+ rubygems_version: 1.8.25
214
235
  signing_key:
215
- specification_version: 4
236
+ specification_version: 3
216
237
  summary: common functionality for Mystro
217
238
  test_files:
218
239
  - spec/cloud/aws/balancer_spec.rb
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDE3ZjdiMzBkZGZhMjBhNzk4NjdlZWIxYTMxYzg0ZWU3MjExMzEzNA==
5
- data.tar.gz: !binary |-
6
- M2M5NmJhY2MzZGM1OTU2ZjM0MGYzMjJkNjUxNTgyYWE1NWM0NGMyNQ==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- M2QzY2Y3NjlkZWRjOWQwOThhZmFmMjJlZTkyMjNjZWY2Zjk4MDFhODA2ZWUz
10
- MTc4ZGY3MGQ5ODRlZGU1MmYyN2M1YTliYTVlOWQ2M2EwZTFiNzk0YjQxYjQw
11
- YTYyOGNlZjRiYjE5NGZkMzU1NGI4OTViMWJkYjcwZGFiMmM3ZmI=
12
- data.tar.gz: !binary |-
13
- NjhhYTBlM2IxYjliMGZhYTc3ODMyODViMjAwZmU4MTU3YWQzZTA1ODk0MGQw
14
- YTM3ZWJiZGEyMjQ0ZGQ4YTVlMTk5ZTc4ODcxMTY5OTFhNDY0OTcwY2Q1YmQ5
15
- MzZiZjEyODE3YTgxN2RiZjhhZDE0MDA5ZWVmMzA0ODNkNmM0MWM=