ec2launcher 1.0.26 → 1.0.27

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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.27
2
+
3
+ * Fixed DSL accessor method access.
4
+
1
5
  ## 1.0.26
2
6
 
3
7
  * More exception handling during launch process.
@@ -33,7 +33,6 @@ module EC2Launcher
33
33
  # Represents a single application stack.
34
34
  class Application
35
35
  include EC2Launcher::DSL::EmailNotifications
36
- include EC2Launcher::DSL::Helper
37
36
  include EC2Launcher::SecurityGroupHandler
38
37
 
39
38
 
@@ -6,8 +6,6 @@ require 'ec2launcher/dsl/helper'
6
6
  module EC2Launcher
7
7
  module DSL
8
8
  class BlockDevice
9
- include EC2Launcher::DSL::Helper
10
-
11
9
  attr_reader :mount_point
12
10
  attr_reader :name
13
11
 
@@ -17,8 +17,6 @@ module EC2Launcher
17
17
  end
18
18
 
19
19
  class EmailNotification
20
- include EC2Launcher::DSL::Helper
21
-
22
20
  dsl_accessor :from
23
21
  dsl_accessor :to
24
22
  dsl_accessor :ses_access_key
@@ -9,7 +9,6 @@ module EC2Launcher
9
9
  module DSL
10
10
  class Environment
11
11
  include EC2Launcher::DSL::EmailNotifications
12
- include EC2Launcher::DSL::Helper
13
12
  include EC2Launcher::SecurityGroupHandler
14
13
 
15
14
  attr_reader :name
@@ -1,40 +1,39 @@
1
- module EC2Launcher
2
- module DSL
3
- module Helper
4
- def dsl_accessor(*symbols)
5
- symbols.each { |sym|
6
- class_eval %{
7
- def #{sym}(*val)
8
- if val.empty
9
- @#{sym}
10
- else
11
- @#{sym} = val.size == 1 ? val[0] : val
12
- self
13
- end
14
- end
15
- }
16
- }
17
- end
18
-
19
- def dsl_array_accessor(*symbols)
20
- symbols.each { |sym|
21
- class_eval %{
22
- def #{sym}(*val)
23
- if val.empty
24
- @#{sym}
25
- else
26
- @#{sym} = [] if @#{sym}.nil?
27
- if val[0].kind_of? Array
28
- @#{sym} += val[0]
29
- else
30
- @#{sym} << val[0]
31
- end
32
- self
33
- end
1
+ #
2
+ # Copyright (c) 2012 Sean Laurent
3
+ #
4
+ class Module
5
+ def dsl_accessor(*symbols)
6
+ symbols.each { |sym|
7
+ class_eval %{
8
+ def #{sym}(*val)
9
+ if val.empty?
10
+ @#{sym}
11
+ else
12
+ @#{sym} = val.size == 1 ? val[0] : val
13
+ self
14
+ end
15
+ end
16
+ }
17
+ }
18
+ end
19
+
20
+ def dsl_array_accessor(*symbols)
21
+ symbols.each { |sym|
22
+ class_eval %{
23
+ def #{sym}(*val)
24
+ if val.empty?
25
+ @#{sym}
26
+ else
27
+ @#{sym} = [] if @#{sym}.nil?
28
+ if val[0].kind_of? Array
29
+ @#{sym} += val[0]
30
+ else
31
+ @#{sym} << val[0]
34
32
  end
35
- }
36
- }
37
- end
38
- end
33
+ self
34
+ end
35
+ end
36
+ }
37
+ }
39
38
  end
40
- end
39
+ end
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2012 Sean Laurent
3
3
  #
4
4
  module EC2Launcher
5
- VERSION = "1.0.26"
5
+ VERSION = "1.0.27"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.26
4
+ version: 1.0.27
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: