itamae-mitsurin 0.11 → 0.12

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: fcd8039ffcb093106c8ceca6892e1b8b8f70e5d7
4
- data.tar.gz: 72709c5c424259b91a1eb1e41d18fad984274f41
3
+ metadata.gz: 68809a61d7faf30d53cf1acf769b64d2b9d4bab4
4
+ data.tar.gz: 0a0664ce51fe7814e5c8930e124eb119eff09c67
5
5
  SHA512:
6
- metadata.gz: 5ea17c658de4e0a93abdead10295af44053838fd5b562846d1c89125d898c59fd31080b667ddd827299f4492ab8557b88a72417f9554d6573925690681bedb18
7
- data.tar.gz: c112dfe9d56aa0e3875affe6756ebaca1a0fc0decd517a1d4a005878c34722716f8c04ae846f135d477f33f4acd97661d19269e0d82a44fd33e19a66ea492fd9
6
+ metadata.gz: 9e1d33a2a2557769d0e32c7394c8a4b9f0aa190a891dd4913672882cc2b614dbf44e95ae3d0cadcd40ea1730e15ec504197560e7335b65802527de92dc6f2b47
7
+ data.tar.gz: 38bdd3bde535d2d3a2570bef2262c438f8cee0d9c79d112ac9b3fc9b3d431dcbb8bc240cabf5b75c1f057d6352e986a900455da98c62d36e733f7c59b8235727
@@ -118,7 +118,6 @@ module ItamaeMitsurin
118
118
  command << command_recipe.join
119
119
 
120
120
  puts TaskBase.hl.color(%!Run Itamae to \"#{bname}\"!, :red)
121
- puts TaskBase.hl.color(%!Role List to \"#{TaskBase.get_roles(node_file).join(", ")}\"!, :blue)
122
121
  run_list_noti = []
123
122
  command_recipe.each {|c_recipe| run_list_noti << c_recipe.split("/") [2]}
124
123
  puts TaskBase.hl.color(%!Run List to \"#{run_list_noti.uniq.join(", ")}\"!, :green)
@@ -135,7 +135,6 @@ module Itamae
135
135
  command << command_recipe.join
136
136
 
137
137
  puts TaskBase.hl.color(%!Run Itamae to \"#{bname}\"!, :red)
138
- puts TaskBase.hl.color(%!Role List to \"#{TaskBase.get_roles(node_file).join(", ")}\"!, :blue)
139
138
  run_list_noti = []
140
139
  command_recipe.each {|c_recipe| run_list_noti << c_recipe.split("/") [2]}
141
140
  puts TaskBase.hl.color(%!Run List to \"#{run_list_noti.uniq.join(", ")}\"!, :green)
@@ -45,14 +45,14 @@ module ItamaeMitsurin
45
45
  end
46
46
  end
47
47
 
48
- def autoload_plugin_resource(method)
49
- begin
50
- require "itamae/plugin/resource/#{method}"
51
- ::ItamaeMitsurin::Plugin::Resource.const_get(to_camel_case(method.to_s))
52
- rescue LoadError, NameError
53
- raise Error, "#{method} resource is missing."
54
- end
55
- end
48
+ # def autoload_plugin_resource(method)
49
+ # begin
50
+ # require "itamae/plugin/resource/#{method}"
51
+ # ::ItamaeMitsurin::Plugin::Resource.const_get(to_camel_case(method.to_s))
52
+ # rescue LoadError, NameError
53
+ # raise Error, "#{method} resource is missing."
54
+ # end
55
+ # end
56
56
 
57
57
  def define_resource(name, klass)
58
58
  class_name = to_camel_case(name.to_s)
@@ -44,8 +44,8 @@ module ItamaeMitsurin
44
44
  })
45
45
 
46
46
  ItamaeMitsurin.logger.color(:green) do
47
- ItamaeMitsurin.info "create volume compleated!"
48
- end
47
+ ItamaeMitsurin.logger.info "create volume compleated!"
48
+ end
49
49
  updated!
50
50
  else
51
51
  @volume = volumes[0]
@@ -64,18 +64,19 @@ module ItamaeMitsurin
64
64
  }).volumes
65
65
 
66
66
  unless volumes.empty?
67
- @volume = ec2.attach_volume({
68
- volume_id: @volume.volume_id,
69
- instance_id: attributes.instance_id,
70
- device: attributes.device
71
- })
72
- ec2.wait_until(:volume_in_use, volume_ids: [ @volume.volume_id ])
73
-
67
+ if volumes[0][:attachments].empty?
68
+ @volume = ec2.attach_volume({
69
+ volume_id: @volume.volume_id,
70
+ instance_id: attributes.instance_id,
71
+ device: attributes.device
72
+ })
73
+ ec2.wait_until(:volume_in_use, volume_ids: [ @volume.volume_id ])
74
74
 
75
- ItamaeMitsurin.logger.color(:green) do
76
- ItamaeMitsurin.info "attach volume compleated!"
77
- end
78
- updated!
75
+ ItamaeMitsurin.logger.color(:green) do
76
+ ItamaeMitsurin.logger.info "attach volume compleated!"
77
+ end
78
+ updated!
79
+ end
79
80
  else
80
81
  @volume = volumes[0]
81
82
  end
@@ -1 +1 @@
1
- 0.11
1
+ 0.12
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-mitsurin
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.11'
4
+ version: '0.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro Kamiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-18 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor