Fix issues reported by new foodcritic
authorTom Hughes <tom@compton.nu>
Sat, 16 Jan 2016 00:07:42 +0000 (00:07 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 16 Jan 2016 00:07:42 +0000 (00:07 +0000)
cookbooks/mysql/providers/database.rb
cookbooks/mysql/providers/user.rb
cookbooks/nodejs/providers/package.rb
cookbooks/postgresql/providers/database.rb
cookbooks/postgresql/providers/execute.rb
cookbooks/postgresql/providers/extension.rb
cookbooks/postgresql/providers/table.rb
cookbooks/postgresql/providers/user.rb

index 345ef7e1ebdf68266c4b3150ee10227fb5a6d4f3..0e7e9091af6f394b88666178974c26d924d7a65a 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @mysql = Chef::MySQL.new
 
index a966679af3be913ee8dcc1ad298db95635c2a850..c2f5e58d2ab35a0d7fa1b0e830223ee2d26d81d8 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @mysql = Chef::MySQL.new
 
index 4c852732fc61b71f682b70e00ebe32812ac24b2d..9d83f40ffe755cd2b42ce1cf2a34fca1936d08dd 100644 (file)
@@ -22,6 +22,8 @@ require "json"
 
 include Chef::Mixin::ShellOut
 
+use_inline_resources
+
 def load_current_resource
   @packages = JSON.parse(shell_out("npm list --global --json").stdout)["dependencies"] || {}
 
index a3a7cbc073b700737b9b4999f7c58c554481f955..998d2bed3bb55f550fbe9be88c8df99144fd6792 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @pg = Chef::PostgreSQL.new(new_resource.cluster)
 
index 2b7bd5ff9d925cc7ceac5e09ba84f8e39f650691..e15a493a0e7be421afa4d3acb8652f22b9efaf21 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @pg = Chef::PostgreSQL.new(new_resource.cluster)
 
index 81a976004e1682f325f3a35e022c588c7a59c2c7..848b7630ec745e4d347fad9877a72819cb151b9d 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @pg = Chef::PostgreSQL.new(new_resource.cluster)
 
index b1dc67571aa7f26e1a85885074d3397021d93d48..495bf8b71e7d9368c25daeaa47cc255e53b1e890 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @pg = Chef::PostgreSQL.new(new_resource.cluster)
   @tables = @pg.tables(new_resource.database)
index 4f21b4d291487d6fd4113fefd113f9c94f2a6df5..5a1402d40389f28ff5a388dc3068788cf7c19f6b 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @pg = Chef::PostgreSQL.new(new_resource.cluster)