mystro-common 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.4:
4
+ * merge
5
+ * hard code rake version in Gemfile to match mystro server
6
+ * support for templates in userdata, handled like files, but processed through erubis
7
+
3
8
  ## v0.1.3:
4
9
  * fixes bugs with dns usage and plugin methods when no plugins are defined
5
10
  * update ruby version
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in mystro-common.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake"
6
+ gem "rake", '10.0.4'
@@ -3,7 +3,7 @@ module Mystro
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 3
6
+ TINY = 4
7
7
  TAG = nil
8
8
  STRING = [MAJOR, MINOR, TINY, TAG].compact.join(".")
9
9
  end
@@ -8,6 +8,8 @@ module Mystro
8
8
  dependencies = opts.delete(:dependencies)
9
9
  gems = opts.delete(:gems)
10
10
  files = opts.delete(:files)
11
+ templates = opts.delete(:templates)
12
+
11
13
  directory = "#{Mystro.directory}/userdata/#{package}"
12
14
  file = "#{directory}/userdata.yml"
13
15
  raise "userdata error: package not specified" unless package
@@ -25,13 +27,17 @@ module Mystro
25
27
  :dependencies => [],
26
28
  :gems => [],
27
29
  :files => [],
30
+ :templates => [],
28
31
  :directory => directory,
29
32
  :template => "userdata.sh.erb",
30
33
  }.deep_merge(config.symbolize_keys!).deep_merge(opts.symbolize_keys!)
31
34
 
35
+ data[:data] = data
36
+
32
37
  data[:gems] += gems if gems
33
38
  data[:dependencies] += dependencies if dependencies
34
39
  data[:files] += files if files
40
+ data[:templates] += templates if templates
35
41
 
36
42
  template = File.open("#{directory}/#{data[:template]}").read
37
43
  erb = Erubis::Eruby.new(template)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mystro-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-17 00:00:00.000000000 Z
12
+ date: 2013-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: 187241732432355941
156
+ hash: -618115457408293498
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  none: false
159
159
  requirements:
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: 187241732432355941
165
+ hash: -618115457408293498
166
166
  requirements: []
167
167
  rubyforge_project:
168
168
  rubygems_version: 1.8.25