Skip to content

Commit

Permalink
Fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
shortdudey123 committed Apr 18, 2016
1 parent 19f5c90 commit 924cea0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 0 additions & 6 deletions libraries/consul_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ class ConsulService < Chef::Provider
provides(:consul_service)
include PoiseService::ServiceMixin

def provides_auto?(node, resource) # rubocop:disable UnusedMethodArgument
puts 'provides_auto?'
puts !node.platform_family?('windows')
!node.platform_family?('windows')
end

def self.provides_auto?(node, resource) # rubocop:disable UnusedMethodArgument
puts 'self.provides_auto?'
puts !node.platform_family?('windows')
Expand Down
8 changes: 7 additions & 1 deletion libraries/consul_service_windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ module Provider
class ConsulServiceWindows < Chef::Provider
include Poise
include Chef::Mixin::ShellOut
provides(:consul_service, os: %w{windows})
provides(:consul_service)
include ConsulCookbook::Helpers

def self.provides_auto?(node, resource) # rubocop:disable UnusedMethodArgument
puts 'self.provides_auto?'
puts node.platform_family?('windows')
node.platform_family?('windows')
end

def action_enable
puts 'windows action_enable'
puts node.platform_family?('windows')
Expand Down

0 comments on commit 924cea0

Please sign in to comment.