rna 0.2.1 → 0.2.2

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.
@@ -128,6 +128,15 @@ module Rna
128
128
  def set(key, value)
129
129
  @data['attributes'][key] = value
130
130
  end
131
+
132
+ def role_list(list)
133
+ list = list.collect {|i| "role[#{i}]"}
134
+ set('run_list', list)
135
+ end
136
+
137
+ def run_list(list)
138
+ set('run_list', list)
139
+ end
131
140
  end
132
141
 
133
142
  # rules get processed scoed to a specific role
@@ -144,15 +153,6 @@ module Rna
144
153
  def name
145
154
  @role
146
155
  end
147
-
148
- def role_list(list)
149
- list = list.collect {|i| "role[#{i}]"}
150
- set('run_list', list)
151
- end
152
-
153
- def run_list(list)
154
- set('run_list', list)
155
- end
156
156
  end
157
157
 
158
158
  class Global < Builder
@@ -199,15 +199,6 @@ module Rna
199
199
  role = nil if role == @name # can't inherit itself
200
200
  @data['inherits'] = role
201
201
  end
202
-
203
- def role_list(list)
204
- list = list.collect {|i| "role[#{i}]"}
205
- set('run_list', list)
206
- end
207
-
208
- def run_list(list)
209
- set('run_list', list)
210
- end
211
202
  end
212
203
 
213
204
  end
@@ -21,7 +21,6 @@ module Rna
21
21
  class S3 < Outputer
22
22
  attr_reader :config, :s3
23
23
  def run(jsons)
24
- acl_options = @options[:public_read] ? {:acl => :public_read} : {}
25
24
  # options[:config] only used for specs
26
25
  s3_config_path = options[:s3_config_path] || 'config/s3.yml'
27
26
  @config ||= YAML.load(File.read(s3_config_path))
@@ -21,7 +21,7 @@ module Rna
21
21
 
22
22
  def initialize(options={})
23
23
  @options = options
24
- @dsl = options[:config_path] ? DSL.new(options) : DSL.new
24
+ @dsl = options.empty? ? DSL.new : DSL.new(options)
25
25
  end
26
26
  def generate
27
27
  @dsl.run
@@ -1,3 +1,3 @@
1
1
  module Rna
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  segments:
207
207
  - 0
208
- hash: -1648500370233161792
208
+ hash: -1637596285023883731
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  none: false
211
211
  requirements:
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: -1648500370233161792
217
+ hash: -1637596285023883731
218
218
  requirements: []
219
219
  rubyforge_project:
220
220
  rubygems_version: 1.8.24