itamae-mitsurin 0.50 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +5 -5
  2. data/lib/itamae-mitsurin/cli.rb +0 -2
  3. data/lib/itamae-mitsurin/logger.rb +74 -20
  4. data/lib/itamae-mitsurin/mitsurin/base.rb +109 -0
  5. data/lib/itamae-mitsurin/mitsurin/base_task.rb +147 -0
  6. data/lib/itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/recipes/default.rb +0 -11
  7. data/lib/itamae-mitsurin/mitsurin/itamae_task.rb +44 -130
  8. data/lib/itamae-mitsurin/mitsurin/itamae_with_target_task.rb +64 -157
  9. data/lib/itamae-mitsurin/mitsurin/local_task.rb +57 -131
  10. data/lib/itamae-mitsurin/mitsurin/serverspec_task.rb +56 -81
  11. data/lib/itamae-mitsurin/mitsurin/serverspec_with_target_task.rb +80 -143
  12. data/lib/itamae-mitsurin/node.rb +0 -1
  13. data/lib/itamae-mitsurin/notification.rb +0 -1
  14. data/lib/itamae-mitsurin/recipe.rb +2 -5
  15. data/lib/itamae-mitsurin/resource.rb +1 -1
  16. data/lib/itamae-mitsurin/resource/base.rb +0 -12
  17. data/lib/itamae-mitsurin/resource/http_request.rb +23 -8
  18. data/lib/itamae-mitsurin/resource/s3_file.rb +33 -0
  19. data/lib/itamae-mitsurin/runner.rb +4 -5
  20. data/lib/itamae-mitsurin/version.txt +1 -1
  21. metadata +6 -221
  22. data/lib/itamae-mitsurin/mitsurin/itamae_with_git_task.rb +0 -159
  23. data/lib/itamae-mitsurin/mitsurin/task_base.rb +0 -100
  24. data/test/test_itamae-mitsurin.rb +0 -18
  25. data/test/test_itamae-mitsurin/ext/test_specinfra.rb +0 -39
  26. data/test/test_itamae-mitsurin/handler/test_base.rb +0 -40
  27. data/test/test_itamae-mitsurin/handler/test_debug.rb +0 -10
  28. data/test/test_itamae-mitsurin/handler/test_fluentd.rb +0 -44
  29. data/test/test_itamae-mitsurin/handler/test_json.rb +0 -22
  30. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/.rspec +0 -2
  31. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/Gemfile +0 -3
  32. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/Rakefile +0 -2
  33. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/environments/.keep +0 -0
  34. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/environments/sample.json +0 -7
  35. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/keys/.keep +0 -0
  36. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/nodes/.keep +0 -0
  37. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/nodes/sample01.json +0 -9
  38. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/roles/.keep +0 -0
  39. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/attributes/.keep +0 -0
  40. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/files/.keep +0 -0
  41. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/recipes/default.rb +0 -1
  42. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/spec/default_spec.rb +0 -1
  43. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/templates/.keep +0 -0
  44. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/spec/spec_helper.rb +0 -33
  45. data/test/test_itamae-mitsurin/mitsurin/creators/templates/project/tmp-nodes/.keep +0 -0
  46. data/test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/attributes/.keep +0 -0
  47. data/test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/files/.keep +0 -0
  48. data/test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/recipes/default.rb +0 -0
  49. data/test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/spec/.keep +0 -0
  50. data/test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/templates/.keep +0 -0
  51. data/test/test_itamae-mitsurin/mitsurin/creators/test_cookbook.rb +0 -24
  52. data/test/test_itamae-mitsurin/mitsurin/creators/test_project.rb +0 -24
  53. data/test/test_itamae-mitsurin/mitsurin/test_cli.rb +0 -56
  54. data/test/test_itamae-mitsurin/mitsurin/test_creators.rb +0 -19
  55. data/test/test_itamae-mitsurin/mitsurin/test_itamae_task.rb +0 -197
  56. data/test/test_itamae-mitsurin/mitsurin/test_itamae_with_git_task.rb +0 -213
  57. data/test/test_itamae-mitsurin/mitsurin/test_serverspec_task.rb +0 -123
  58. data/test/test_itamae-mitsurin/resource/test_aws_ebs_volume.rb +0 -84
  59. data/test/test_itamae-mitsurin/resource/test_base.rb +0 -374
  60. data/test/test_itamae-mitsurin/resource/test_directory.rb +0 -63
  61. data/test/test_itamae-mitsurin/resource/test_execute.rb +0 -26
  62. data/test/test_itamae-mitsurin/resource/test_file.rb +0 -176
  63. data/test/test_itamae-mitsurin/resource/test_gem_package.rb +0 -81
  64. data/test/test_itamae-mitsurin/resource/test_git.rb +0 -94
  65. data/test/test_itamae-mitsurin/resource/test_group.rb +0 -42
  66. data/test/test_itamae-mitsurin/resource/test_http_request.rb +0 -71
  67. data/test/test_itamae-mitsurin/resource/test_link.rb +0 -33
  68. data/test/test_itamae-mitsurin/resource/test_local_ruby_block.rb +0 -15
  69. data/test/test_itamae-mitsurin/resource/test_package.rb +0 -44
  70. data/test/test_itamae-mitsurin/resource/test_remote_directory.rb +0 -84
  71. data/test/test_itamae-mitsurin/resource/test_remote_file.rb +0 -54
  72. data/test/test_itamae-mitsurin/resource/test_service.rb +0 -69
  73. data/test/test_itamae-mitsurin/resource/test_template.rb +0 -53
  74. data/test/test_itamae-mitsurin/resource/test_user.rb +0 -93
  75. data/test/test_itamae-mitsurin/test_backend.rb +0 -297
  76. data/test/test_itamae-mitsurin/test_cli.rb +0 -88
  77. data/test/test_itamae-mitsurin/test_definition.rb +0 -40
  78. data/test/test_itamae-mitsurin/test_ext.rb +0 -1
  79. data/test/test_itamae-mitsurin/test_handler.rb +0 -21
  80. data/test/test_itamae-mitsurin/test_handler_proxy.rb +0 -38
  81. data/test/test_itamae-mitsurin/test_logger.rb +0 -124
  82. data/test/test_itamae-mitsurin/test_mitsurin.rb +0 -14
  83. data/test/test_itamae-mitsurin/test_node.rb +0 -74
  84. data/test/test_itamae-mitsurin/test_notification.rb +0 -46
  85. data/test/test_itamae-mitsurin/test_recipe.rb +0 -171
  86. data/test/test_itamae-mitsurin/test_recipe_children.rb +0 -86
  87. data/test/test_itamae-mitsurin/test_resource.rb +0 -73
  88. data/test/test_itamae-mitsurin/test_runner.rb +0 -124
  89. data/test/test_itamae-mitsurin/test_version.rb +0 -3
  90. data/test/test_itamae-mitsurin/version.txt +0 -1
  91. data/test_project/.rspec +0 -2
  92. data/test_project/Gemfile +0 -4
  93. data/test_project/Rakefile +0 -3
  94. data/test_project/environments/.keep +0 -0
  95. data/test_project/keys/.keep +0 -0
  96. data/test_project/nodes/.keep +0 -0
  97. data/test_project/nodes/test.json +0 -9
  98. data/test_project/roles/.keep +0 -0
  99. data/test_project/roles/test.json +0 -14
  100. data/test_project/site-cookbooks/_base/_base/attributes/.keep +0 -0
  101. data/test_project/site-cookbooks/_base/_base/files/.keep +0 -0
  102. data/test_project/site-cookbooks/_base/_base/recipes/default.rb +0 -1
  103. data/test_project/site-cookbooks/_base/_base/spec/default_spec.rb +0 -1
  104. data/test_project/site-cookbooks/_base/_base/templates/.keep +0 -0
  105. data/test_project/site-cookbooks/a_test/directory/attributes/.keep +0 -0
  106. data/test_project/site-cookbooks/a_test/directory/files/.keep +0 -0
  107. data/test_project/site-cookbooks/a_test/directory/recipes/default.rb +0 -8
  108. data/test_project/site-cookbooks/a_test/directory/spec/.keep +0 -0
  109. data/test_project/site-cookbooks/a_test/directory/spec/default_spec.rb +0 -4
  110. data/test_project/site-cookbooks/a_test/directory/templates/.keep +0 -0
  111. data/test_project/site-cookbooks/a_test/package/attributes/.keep +0 -0
  112. data/test_project/site-cookbooks/a_test/package/files/.keep +0 -0
  113. data/test_project/site-cookbooks/a_test/package/recipes/default.rb +0 -2
  114. data/test_project/site-cookbooks/a_test/package/spec/.keep +0 -0
  115. data/test_project/site-cookbooks/a_test/package/spec/default_spec.rb +0 -4
  116. data/test_project/site-cookbooks/a_test/package/templates/.keep +0 -0
  117. data/test_project/site-cookbooks/a_test/service/attributes/.keep +0 -0
  118. data/test_project/site-cookbooks/a_test/service/files/.keep +0 -0
  119. data/test_project/site-cookbooks/a_test/service/recipes/default.rb +0 -5
  120. data/test_project/site-cookbooks/a_test/service/spec/.keep +0 -0
  121. data/test_project/site-cookbooks/a_test/service/spec/default_spec.rb +0 -6
  122. data/test_project/site-cookbooks/a_test/service/templates/.keep +0 -0
  123. data/test_project/site-cookbooks/b_test/git/attributes/.keep +0 -0
  124. data/test_project/site-cookbooks/b_test/git/files/.keep +0 -0
  125. data/test_project/site-cookbooks/b_test/git/recipes/default.rb +0 -5
  126. data/test_project/site-cookbooks/b_test/git/spec/.keep +0 -0
  127. data/test_project/site-cookbooks/b_test/git/spec/default_spec.rb +0 -5
  128. data/test_project/site-cookbooks/b_test/git/templates/.keep +0 -0
  129. data/test_project/site-cookbooks/b_test/link/attributes/.keep +0 -0
  130. data/test_project/site-cookbooks/b_test/link/files/.keep +0 -0
  131. data/test_project/site-cookbooks/b_test/link/recipes/default.rb +0 -5
  132. data/test_project/site-cookbooks/b_test/link/spec/.keep +0 -0
  133. data/test_project/site-cookbooks/b_test/link/spec/default_spec.rb +0 -5
  134. data/test_project/site-cookbooks/b_test/link/templates/.keep +0 -0
  135. data/test_project/site-cookbooks/b_test/remote_file/attributes/.keep +0 -0
  136. data/test_project/site-cookbooks/b_test/remote_file/files/.keep +0 -0
  137. data/test_project/site-cookbooks/b_test/remote_file/files/remote_file.sh +0 -1
  138. data/test_project/site-cookbooks/b_test/remote_file/recipes/default.rb +0 -9
  139. data/test_project/site-cookbooks/b_test/remote_file/spec/.keep +0 -0
  140. data/test_project/site-cookbooks/b_test/remote_file/spec/default_spec.rb +0 -7
  141. data/test_project/site-cookbooks/b_test/remote_file/templates/.keep +0 -0
  142. data/test_project/site-cookbooks/b_test/template/attributes/.keep +0 -0
  143. data/test_project/site-cookbooks/b_test/template/files/.keep +0 -0
  144. data/test_project/site-cookbooks/b_test/template/recipes/default.rb +0 -5
  145. data/test_project/site-cookbooks/b_test/template/spec/.keep +0 -0
  146. data/test_project/site-cookbooks/b_test/template/spec/default_spec.rb +0 -7
  147. data/test_project/site-cookbooks/b_test/template/templates/.keep +0 -0
  148. data/test_project/site-cookbooks/b_test/template/templates/template.erb +0 -2
  149. data/test_project/site-cookbooks/c_test/execute/attributes/.keep +0 -0
  150. data/test_project/site-cookbooks/c_test/execute/files/.keep +0 -0
  151. data/test_project/site-cookbooks/c_test/execute/recipes/default.rb +0 -6
  152. data/test_project/site-cookbooks/c_test/execute/spec/.keep +0 -0
  153. data/test_project/site-cookbooks/c_test/execute/spec/default_spec.rb +0 -6
  154. data/test_project/site-cookbooks/c_test/execute/templates/.keep +0 -0
  155. data/test_project/site-cookbooks/c_test/remote_directory/attributes/.keep +0 -0
  156. data/test_project/site-cookbooks/c_test/remote_directory/files/.keep +0 -0
  157. data/test_project/site-cookbooks/c_test/remote_directory/recipes/default.rb +0 -10
  158. data/test_project/site-cookbooks/c_test/remote_directory/spec/.keep +0 -0
  159. data/test_project/site-cookbooks/c_test/remote_directory/spec/default_spec.rb +0 -20
  160. data/test_project/site-cookbooks/c_test/remote_directory/templates/.keep +0 -0
  161. data/test_project/site-cookbooks/c_test/remote_directory/templates/remote_dir/a.txt +0 -0
  162. data/test_project/site-cookbooks/c_test/remote_directory/templates/remote_dir/b.txt +0 -0
  163. data/test_project/site-cookbooks/c_test/remote_directory/templates/remote_dir/c.txt +0 -0
  164. data/test_project/site-cookbooks/d_spec/air/attributes/.keep +0 -0
  165. data/test_project/site-cookbooks/d_spec/air/files/.keep +0 -0
  166. data/test_project/site-cookbooks/d_spec/air/recipes/default.rb +0 -0
  167. data/test_project/site-cookbooks/d_spec/air/spec/.keep +0 -0
  168. data/test_project/site-cookbooks/d_spec/air/spec/default_spec.rb +0 -0
  169. data/test_project/site-cookbooks/d_spec/air/templates/.keep +0 -0
  170. data/test_project/spec/spec_helper.rb +0 -33
  171. data/test_project/tmp-nodes/.keep +0 -0
  172. data/test_project/tmp-nodes/test.json +0 -12
@@ -20,6 +20,7 @@ require 'itamae-mitsurin/resource/aws_ebs_volume'
20
20
  require 'itamae-mitsurin/resource/aws_route53_rrset'
21
21
  require 'itamae-mitsurin/resource/aws_route53_rrset_alias'
22
22
  require 'itamae-mitsurin/resource/aws_ec2_instance'
23
+ require 'itamae-mitsurin/resource/s3_file'
23
24
 
24
25
  module ItamaeMitsurin
25
26
  module Resource
@@ -58,7 +59,6 @@ module ItamaeMitsurin
58
59
  class_name = to_camel_case(name.to_s)
59
60
  if Resource.const_defined?(class_name)
60
61
  ItamaeMitsurin.logger.warn "Redefine class. (#{class_name})"
61
- ItamaeMitsurin.file_logger.warn "Redefine class. (#{class_name})"
62
62
  return
63
63
  end
64
64
 
@@ -149,7 +149,6 @@ module ItamaeMitsurin
149
149
  end
150
150
  rescue Backend::CommandExecutionError
151
151
  ItamaeMitsurin.logger.error "#{resource_type}[#{resource_name}] Failed."
152
- ItamaeMitsurin.file_logger.error "#{resource_type}[#{resource_name}] Failed."
153
152
  exit 2
154
153
  end
155
154
 
@@ -190,7 +189,6 @@ module ItamaeMitsurin
190
189
  if runner.dry_run?
191
190
  unless respond_to?(method_name)
192
191
  ItamaeMitsurin.logger.error "action #{action.inspect} is unavailable"
193
- ItamaeMitsurin.file_logger.error "action #{action.inspect} is unavailable"
194
192
  end
195
193
  else
196
194
  args = [method_name]
@@ -241,14 +239,12 @@ module ItamaeMitsurin
241
239
  elsif current_value.nil? && !value.nil?
242
240
  ItamaeMitsurin.logger.color :green do
243
241
  ItamaeMitsurin.logger.info "#{resource_type}[#{resource_name}] #{key} will be '#{value}'"
244
- ItamaeMitsurin.file_logger.info "#{resource_type}[#{resource_name}] #{key} will be '#{value}'"
245
242
  end
246
243
  elsif current_value == value || value.nil?
247
244
  ItamaeMitsurin.logger.debug "#{resource_type}[#{resource_name}] #{key} will not change (current value is '#{current_value}')"
248
245
  else
249
246
  ItamaeMitsurin.logger.color :green do
250
247
  ItamaeMitsurin.logger.info "#{resource_type}[#{resource_name}] #{key} will change from '#{current_value}' to '#{value}'"
251
- ItamaeMitsurin.file_logger.info "#{resource_type}[#{resource_name}] #{key} will change from '#{current_value}' to '#{value}'"
252
248
  end
253
249
  end
254
250
  end
@@ -351,11 +347,9 @@ module ItamaeMitsurin
351
347
  end
352
348
 
353
349
  ItamaeMitsurin.logger.info message
354
- ItamaeMitsurin.file_logger.info message
355
350
 
356
351
  if notification.instance_of?(Subscription)
357
352
  ItamaeMitsurin.logger.info "(because it subscribes this resource)"
358
- ItamaeMitsurin.file_logger.info "(because it subscribes this resource)"
359
353
  end
360
354
 
361
355
  if notification.delayed?
@@ -370,17 +364,11 @@ module ItamaeMitsurin
370
364
  return if @verify_commands.empty?
371
365
 
372
366
  ItamaeMitsurin.logger.info "Verifying..."
373
- ItamaeMitsurin.file_logger.info "Verifying..."
374
367
  ItamaeMitsurin.logger.with_indent do
375
368
  @verify_commands.each do |command|
376
369
  run_command(command)
377
370
  end
378
371
  end
379
- ItamaeMitsurin.file_logger.with_indent do
380
- @verify_commands.each do |command|
381
- run_command(command)
382
- end
383
- end
384
372
  end
385
373
  end
386
374
  end
@@ -7,6 +7,9 @@ module ItamaeMitsurin
7
7
  class HttpRequest < File
8
8
  RedirectLimitExceeded = Class.new(StandardError)
9
9
 
10
+ alias_method :_action_create, :action_create
11
+ undef_method :action_create, :action_delete, :action_edit
12
+
10
13
  define_attribute :action, default: :get
11
14
  define_attribute :headers, type: Hash, default: {}
12
15
  define_attribute :message, type: String, default: ""
@@ -14,6 +17,20 @@ module ItamaeMitsurin
14
17
  define_attribute :url, type: String, required: true
15
18
 
16
19
  def pre_action
20
+ attributes.content = fetch_content
21
+
22
+ super
23
+
24
+ attributes.exist = true
25
+ end
26
+
27
+ def show_differences
28
+ super
29
+
30
+ show_content_diff if @temppath && @current_action == :delete
31
+ end
32
+
33
+ def fetch_content
17
34
  uri = URI.parse(attributes.url)
18
35
  response = nil
19
36
  redirects_followed = 0
@@ -42,29 +59,27 @@ module ItamaeMitsurin
42
59
  end
43
60
  end
44
61
 
45
- attributes.content = response.body
46
-
47
- super
62
+ response.body
48
63
  end
49
64
 
50
65
  def action_delete(options)
51
- action_create(options)
66
+ _action_create(options)
52
67
  end
53
68
 
54
69
  def action_get(options)
55
- action_create(options)
70
+ _action_create(options)
56
71
  end
57
72
 
58
73
  def action_options(options)
59
- action_create(options)
74
+ _action_create(options)
60
75
  end
61
76
 
62
77
  def action_post(options)
63
- action_create(options)
78
+ _action_create(options)
64
79
  end
65
80
 
66
81
  def action_put(options)
67
- action_create(options)
82
+ _action_create(options)
68
83
  end
69
84
  end
70
85
  end
@@ -0,0 +1,33 @@
1
+ require 'itamae-mitsurin'
2
+ require 'itamae-mitsurin/mitsurin'
3
+
4
+ module ItamaeMitsurin
5
+ module Resource
6
+ class S3File < File
7
+ define_attribute :object_key, type: String, default_name: true
8
+ define_attribute :region, type: String
9
+ define_attribute :bucket, type: String
10
+ define_attribute :profile, type: String, default: 'default'
11
+
12
+ private
13
+
14
+ def pre_action
15
+ credentials = Aws::SharedCredentials.new(profile_name: attributes.profile)
16
+ @s3 = Aws::S3::Client.new(region: attributes.region, credentials: credentials)
17
+ attributes.content = fetch_content
18
+
19
+ super
20
+ end
21
+
22
+ def fetch_content
23
+ case @current_action
24
+ when :create, :delete, :edit
25
+ resp = @s3.get_object(bucket: attributes.bucket, key: attributes.object_key)
26
+ end
27
+
28
+ resp.body.read
29
+ end
30
+ end
31
+ end
32
+ end
33
+
@@ -7,7 +7,6 @@ module ItamaeMitsurin
7
7
  class << self
8
8
  def run(recipe_files, backend_type, options)
9
9
  ItamaeMitsurin.logger.info "Starting Itamae..."
10
- ItamaeMitsurin.file_logger.info "Starting Itamae..."
11
10
 
12
11
  backend = Backend.create(backend_type, options)
13
12
  runner = self.new(backend, options)
@@ -100,29 +99,29 @@ module ItamaeMitsurin
100
99
  unless @backend.run_command("which ohai", error: false).exit_status == 0
101
100
  # install Ohai
102
101
  ItamaeMitsurin.logger.info "Installing Chef package... (to use Ohai)"
103
- ItamaeMitsurin.file_logger.info "Installing Chef package... (to use Ohai)"
104
102
  @backend.run_command("curl -L https://www.opscode.com/chef/install.sh | bash")
105
103
  end
106
104
 
107
105
  ItamaeMitsurin.logger.info "Loading node data via ohai..."
108
- ItamaeMitsurin.file_logger.info "Loading node data via ohai..."
109
106
  hash.merge!(JSON.parse(@backend.run_command("ohai").stdout))
110
107
  end
111
108
 
112
109
  if @options[:node_json]
113
110
  path = File.expand_path(@options[:node_json])
114
111
  ItamaeMitsurin.logger.info "Loading node data from #{path}..."
115
- ItamaeMitsurin.file_logger.info "Loading node data from #{path}..."
116
112
  hash.merge!(JSON.load(open(path)))
117
113
  end
118
114
 
119
115
  if @options[:node_yaml]
120
116
  path = File.expand_path(@options[:node_yaml])
121
117
  ItamaeMitsurin.logger.info "Loading node data from #{path}..."
122
- ItamaeMitsurin.file_logger.info "Loading node data from #{path}..."
123
118
  hash.merge!(YAML.load(open(path)) || {})
124
119
  end
125
120
 
121
+ ItamaeMitsurin.logger.color(:green) do
122
+ ItamaeMitsurin.logger.info "Environment: #{hash['environments']['set']}"
123
+ end
124
+
126
125
  Node.new(hash, @backend)
127
126
  end
128
127
 
@@ -1 +1 @@
1
- 0.50
1
+ 1.0.0
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.50'
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro Kamiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-28 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -300,6 +300,8 @@ files:
300
300
  - lib/itamae-mitsurin/handler_proxy.rb
301
301
  - lib/itamae-mitsurin/logger.rb
302
302
  - lib/itamae-mitsurin/mitsurin.rb
303
+ - lib/itamae-mitsurin/mitsurin/base.rb
304
+ - lib/itamae-mitsurin/mitsurin/base_task.rb
303
305
  - lib/itamae-mitsurin/mitsurin/cli.rb
304
306
  - lib/itamae-mitsurin/mitsurin/creators.rb
305
307
  - lib/itamae-mitsurin/mitsurin/creators/cookbook.rb
@@ -331,12 +333,10 @@ files:
331
333
  - lib/itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/recipes/templates/.keep
332
334
  - lib/itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/spec/default_spec.rb
333
335
  - lib/itamae-mitsurin/mitsurin/itamae_task.rb
334
- - lib/itamae-mitsurin/mitsurin/itamae_with_git_task.rb
335
336
  - lib/itamae-mitsurin/mitsurin/itamae_with_target_task.rb
336
337
  - lib/itamae-mitsurin/mitsurin/local_task.rb
337
338
  - lib/itamae-mitsurin/mitsurin/serverspec_task.rb
338
339
  - lib/itamae-mitsurin/mitsurin/serverspec_with_target_task.rb
339
- - lib/itamae-mitsurin/mitsurin/task_base.rb
340
340
  - lib/itamae-mitsurin/node.rb
341
341
  - lib/itamae-mitsurin/notification.rb
342
342
  - lib/itamae-mitsurin/recipe.rb
@@ -360,6 +360,7 @@ files:
360
360
  - lib/itamae-mitsurin/resource/package.rb
361
361
  - lib/itamae-mitsurin/resource/remote_directory.rb
362
362
  - lib/itamae-mitsurin/resource/remote_file.rb
363
+ - lib/itamae-mitsurin/resource/s3_file.rb
363
364
  - lib/itamae-mitsurin/resource/service.rb
364
365
  - lib/itamae-mitsurin/resource/template.rb
365
366
  - lib/itamae-mitsurin/resource/user.rb
@@ -392,155 +393,6 @@ files:
392
393
  - spec/unit/lib/itamae/resource_spec.rb
393
394
  - spec/unit/lib/itamae/runner_spec.rb
394
395
  - spec/unit/spec_helper.rb
395
- - test/test_itamae-mitsurin.rb
396
- - test/test_itamae-mitsurin/ext/test_specinfra.rb
397
- - test/test_itamae-mitsurin/handler/test_base.rb
398
- - test/test_itamae-mitsurin/handler/test_debug.rb
399
- - test/test_itamae-mitsurin/handler/test_fluentd.rb
400
- - test/test_itamae-mitsurin/handler/test_json.rb
401
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/.rspec
402
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/Gemfile
403
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/Rakefile
404
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/environments/.keep
405
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/environments/sample.json
406
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/keys/.keep
407
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/nodes/.keep
408
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/nodes/sample01.json
409
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/roles/.keep
410
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/attributes/.keep
411
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/files/.keep
412
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/recipes/default.rb
413
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/spec/default_spec.rb
414
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/templates/.keep
415
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/spec/spec_helper.rb
416
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/tmp-nodes/.keep
417
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/attributes/.keep
418
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/files/.keep
419
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/recipes/default.rb
420
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/spec/.keep
421
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/templates/.keep
422
- - test/test_itamae-mitsurin/mitsurin/creators/test_cookbook.rb
423
- - test/test_itamae-mitsurin/mitsurin/creators/test_project.rb
424
- - test/test_itamae-mitsurin/mitsurin/test_cli.rb
425
- - test/test_itamae-mitsurin/mitsurin/test_creators.rb
426
- - test/test_itamae-mitsurin/mitsurin/test_itamae_task.rb
427
- - test/test_itamae-mitsurin/mitsurin/test_itamae_with_git_task.rb
428
- - test/test_itamae-mitsurin/mitsurin/test_serverspec_task.rb
429
- - test/test_itamae-mitsurin/resource/test_aws_ebs_volume.rb
430
- - test/test_itamae-mitsurin/resource/test_base.rb
431
- - test/test_itamae-mitsurin/resource/test_directory.rb
432
- - test/test_itamae-mitsurin/resource/test_execute.rb
433
- - test/test_itamae-mitsurin/resource/test_file.rb
434
- - test/test_itamae-mitsurin/resource/test_gem_package.rb
435
- - test/test_itamae-mitsurin/resource/test_git.rb
436
- - test/test_itamae-mitsurin/resource/test_group.rb
437
- - test/test_itamae-mitsurin/resource/test_http_request.rb
438
- - test/test_itamae-mitsurin/resource/test_link.rb
439
- - test/test_itamae-mitsurin/resource/test_local_ruby_block.rb
440
- - test/test_itamae-mitsurin/resource/test_package.rb
441
- - test/test_itamae-mitsurin/resource/test_remote_directory.rb
442
- - test/test_itamae-mitsurin/resource/test_remote_file.rb
443
- - test/test_itamae-mitsurin/resource/test_service.rb
444
- - test/test_itamae-mitsurin/resource/test_template.rb
445
- - test/test_itamae-mitsurin/resource/test_user.rb
446
- - test/test_itamae-mitsurin/test_backend.rb
447
- - test/test_itamae-mitsurin/test_cli.rb
448
- - test/test_itamae-mitsurin/test_definition.rb
449
- - test/test_itamae-mitsurin/test_ext.rb
450
- - test/test_itamae-mitsurin/test_handler.rb
451
- - test/test_itamae-mitsurin/test_handler_proxy.rb
452
- - test/test_itamae-mitsurin/test_logger.rb
453
- - test/test_itamae-mitsurin/test_mitsurin.rb
454
- - test/test_itamae-mitsurin/test_node.rb
455
- - test/test_itamae-mitsurin/test_notification.rb
456
- - test/test_itamae-mitsurin/test_recipe.rb
457
- - test/test_itamae-mitsurin/test_recipe_children.rb
458
- - test/test_itamae-mitsurin/test_resource.rb
459
- - test/test_itamae-mitsurin/test_runner.rb
460
- - test/test_itamae-mitsurin/test_version.rb
461
- - test/test_itamae-mitsurin/version.txt
462
- - test_project/.rspec
463
- - test_project/Gemfile
464
- - test_project/Rakefile
465
- - test_project/environments/.keep
466
- - test_project/keys/.keep
467
- - test_project/nodes/.keep
468
- - test_project/nodes/test.json
469
- - test_project/roles/.keep
470
- - test_project/roles/test.json
471
- - test_project/site-cookbooks/_base/_base/attributes/.keep
472
- - test_project/site-cookbooks/_base/_base/files/.keep
473
- - test_project/site-cookbooks/_base/_base/recipes/default.rb
474
- - test_project/site-cookbooks/_base/_base/spec/default_spec.rb
475
- - test_project/site-cookbooks/_base/_base/templates/.keep
476
- - test_project/site-cookbooks/a_test/directory/attributes/.keep
477
- - test_project/site-cookbooks/a_test/directory/files/.keep
478
- - test_project/site-cookbooks/a_test/directory/recipes/default.rb
479
- - test_project/site-cookbooks/a_test/directory/spec/.keep
480
- - test_project/site-cookbooks/a_test/directory/spec/default_spec.rb
481
- - test_project/site-cookbooks/a_test/directory/templates/.keep
482
- - test_project/site-cookbooks/a_test/package/attributes/.keep
483
- - test_project/site-cookbooks/a_test/package/files/.keep
484
- - test_project/site-cookbooks/a_test/package/recipes/default.rb
485
- - test_project/site-cookbooks/a_test/package/spec/.keep
486
- - test_project/site-cookbooks/a_test/package/spec/default_spec.rb
487
- - test_project/site-cookbooks/a_test/package/templates/.keep
488
- - test_project/site-cookbooks/a_test/service/attributes/.keep
489
- - test_project/site-cookbooks/a_test/service/files/.keep
490
- - test_project/site-cookbooks/a_test/service/recipes/default.rb
491
- - test_project/site-cookbooks/a_test/service/spec/.keep
492
- - test_project/site-cookbooks/a_test/service/spec/default_spec.rb
493
- - test_project/site-cookbooks/a_test/service/templates/.keep
494
- - test_project/site-cookbooks/b_test/git/attributes/.keep
495
- - test_project/site-cookbooks/b_test/git/files/.keep
496
- - test_project/site-cookbooks/b_test/git/recipes/default.rb
497
- - test_project/site-cookbooks/b_test/git/spec/.keep
498
- - test_project/site-cookbooks/b_test/git/spec/default_spec.rb
499
- - test_project/site-cookbooks/b_test/git/templates/.keep
500
- - test_project/site-cookbooks/b_test/link/attributes/.keep
501
- - test_project/site-cookbooks/b_test/link/files/.keep
502
- - test_project/site-cookbooks/b_test/link/recipes/default.rb
503
- - test_project/site-cookbooks/b_test/link/spec/.keep
504
- - test_project/site-cookbooks/b_test/link/spec/default_spec.rb
505
- - test_project/site-cookbooks/b_test/link/templates/.keep
506
- - test_project/site-cookbooks/b_test/remote_file/attributes/.keep
507
- - test_project/site-cookbooks/b_test/remote_file/files/.keep
508
- - test_project/site-cookbooks/b_test/remote_file/files/remote_file.sh
509
- - test_project/site-cookbooks/b_test/remote_file/recipes/default.rb
510
- - test_project/site-cookbooks/b_test/remote_file/spec/.keep
511
- - test_project/site-cookbooks/b_test/remote_file/spec/default_spec.rb
512
- - test_project/site-cookbooks/b_test/remote_file/templates/.keep
513
- - test_project/site-cookbooks/b_test/template/attributes/.keep
514
- - test_project/site-cookbooks/b_test/template/files/.keep
515
- - test_project/site-cookbooks/b_test/template/recipes/default.rb
516
- - test_project/site-cookbooks/b_test/template/spec/.keep
517
- - test_project/site-cookbooks/b_test/template/spec/default_spec.rb
518
- - test_project/site-cookbooks/b_test/template/templates/.keep
519
- - test_project/site-cookbooks/b_test/template/templates/template.erb
520
- - test_project/site-cookbooks/c_test/execute/attributes/.keep
521
- - test_project/site-cookbooks/c_test/execute/files/.keep
522
- - test_project/site-cookbooks/c_test/execute/recipes/default.rb
523
- - test_project/site-cookbooks/c_test/execute/spec/.keep
524
- - test_project/site-cookbooks/c_test/execute/spec/default_spec.rb
525
- - test_project/site-cookbooks/c_test/execute/templates/.keep
526
- - test_project/site-cookbooks/c_test/remote_directory/attributes/.keep
527
- - test_project/site-cookbooks/c_test/remote_directory/files/.keep
528
- - test_project/site-cookbooks/c_test/remote_directory/recipes/default.rb
529
- - test_project/site-cookbooks/c_test/remote_directory/spec/.keep
530
- - test_project/site-cookbooks/c_test/remote_directory/spec/default_spec.rb
531
- - test_project/site-cookbooks/c_test/remote_directory/templates/.keep
532
- - test_project/site-cookbooks/c_test/remote_directory/templates/remote_dir/a.txt
533
- - test_project/site-cookbooks/c_test/remote_directory/templates/remote_dir/b.txt
534
- - test_project/site-cookbooks/c_test/remote_directory/templates/remote_dir/c.txt
535
- - test_project/site-cookbooks/d_spec/air/attributes/.keep
536
- - test_project/site-cookbooks/d_spec/air/files/.keep
537
- - test_project/site-cookbooks/d_spec/air/recipes/default.rb
538
- - test_project/site-cookbooks/d_spec/air/spec/.keep
539
- - test_project/site-cookbooks/d_spec/air/spec/default_spec.rb
540
- - test_project/site-cookbooks/d_spec/air/templates/.keep
541
- - test_project/spec/spec_helper.rb
542
- - test_project/tmp-nodes/.keep
543
- - test_project/tmp-nodes/test.json
544
396
  homepage: https://github.com/kammy1231/itamae-mitsurin
545
397
  licenses:
546
398
  - MIT
@@ -561,7 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
561
413
  version: '0'
562
414
  requirements: []
563
415
  rubyforge_project:
564
- rubygems_version: 2.4.5.1
416
+ rubygems_version: 2.7.3
565
417
  signing_key:
566
418
  specification_version: 4
567
419
  summary: Customized version of Itamae and Itamae plugin. configuration management
@@ -593,70 +445,3 @@ test_files:
593
445
  - spec/unit/lib/itamae/resource_spec.rb
594
446
  - spec/unit/lib/itamae/runner_spec.rb
595
447
  - spec/unit/spec_helper.rb
596
- - test/test_itamae-mitsurin.rb
597
- - test/test_itamae-mitsurin/ext/test_specinfra.rb
598
- - test/test_itamae-mitsurin/handler/test_base.rb
599
- - test/test_itamae-mitsurin/handler/test_debug.rb
600
- - test/test_itamae-mitsurin/handler/test_fluentd.rb
601
- - test/test_itamae-mitsurin/handler/test_json.rb
602
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/.rspec
603
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/Gemfile
604
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/Rakefile
605
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/environments/.keep
606
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/environments/sample.json
607
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/keys/.keep
608
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/nodes/.keep
609
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/nodes/sample01.json
610
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/roles/.keep
611
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/attributes/.keep
612
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/files/.keep
613
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/recipes/default.rb
614
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/spec/default_spec.rb
615
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/site-cookbooks/_base/_base/templates/.keep
616
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/spec/spec_helper.rb
617
- - test/test_itamae-mitsurin/mitsurin/creators/templates/project/tmp-nodes/.keep
618
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/attributes/.keep
619
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/files/.keep
620
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/recipes/default.rb
621
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/spec/.keep
622
- - test/test_itamae-mitsurin/mitsurin/creators/templates/site-cookbooks/templates/.keep
623
- - test/test_itamae-mitsurin/mitsurin/creators/test_cookbook.rb
624
- - test/test_itamae-mitsurin/mitsurin/creators/test_project.rb
625
- - test/test_itamae-mitsurin/mitsurin/test_cli.rb
626
- - test/test_itamae-mitsurin/mitsurin/test_creators.rb
627
- - test/test_itamae-mitsurin/mitsurin/test_itamae_task.rb
628
- - test/test_itamae-mitsurin/mitsurin/test_itamae_with_git_task.rb
629
- - test/test_itamae-mitsurin/mitsurin/test_serverspec_task.rb
630
- - test/test_itamae-mitsurin/resource/test_aws_ebs_volume.rb
631
- - test/test_itamae-mitsurin/resource/test_base.rb
632
- - test/test_itamae-mitsurin/resource/test_directory.rb
633
- - test/test_itamae-mitsurin/resource/test_execute.rb
634
- - test/test_itamae-mitsurin/resource/test_file.rb
635
- - test/test_itamae-mitsurin/resource/test_gem_package.rb
636
- - test/test_itamae-mitsurin/resource/test_git.rb
637
- - test/test_itamae-mitsurin/resource/test_group.rb
638
- - test/test_itamae-mitsurin/resource/test_http_request.rb
639
- - test/test_itamae-mitsurin/resource/test_link.rb
640
- - test/test_itamae-mitsurin/resource/test_local_ruby_block.rb
641
- - test/test_itamae-mitsurin/resource/test_package.rb
642
- - test/test_itamae-mitsurin/resource/test_remote_directory.rb
643
- - test/test_itamae-mitsurin/resource/test_remote_file.rb
644
- - test/test_itamae-mitsurin/resource/test_service.rb
645
- - test/test_itamae-mitsurin/resource/test_template.rb
646
- - test/test_itamae-mitsurin/resource/test_user.rb
647
- - test/test_itamae-mitsurin/test_backend.rb
648
- - test/test_itamae-mitsurin/test_cli.rb
649
- - test/test_itamae-mitsurin/test_definition.rb
650
- - test/test_itamae-mitsurin/test_ext.rb
651
- - test/test_itamae-mitsurin/test_handler.rb
652
- - test/test_itamae-mitsurin/test_handler_proxy.rb
653
- - test/test_itamae-mitsurin/test_logger.rb
654
- - test/test_itamae-mitsurin/test_mitsurin.rb
655
- - test/test_itamae-mitsurin/test_node.rb
656
- - test/test_itamae-mitsurin/test_notification.rb
657
- - test/test_itamae-mitsurin/test_recipe.rb
658
- - test/test_itamae-mitsurin/test_recipe_children.rb
659
- - test/test_itamae-mitsurin/test_resource.rb
660
- - test/test_itamae-mitsurin/test_runner.rb
661
- - test/test_itamae-mitsurin/test_version.rb
662
- - test/test_itamae-mitsurin/version.txt