lib/specinfra/command/windows/base.rb in specinfra-2.0.0.beta15 vs lib/specinfra/command/windows/base.rb in specinfra-2.0.0.beta16
- old
+ new
@@ -1,14 +1,15 @@
class Specinfra::Command::Windows::Base
- def self.create
- self.new
- end
+ class << self
+ def create
+ self
+ end
- private
- def windows_account account
- match = /((.+)\\)?(.+)/.match account
- domain = match[2]
- name = match[3]
- [name, domain]
+ private
+ def windows_account account
+ match = /((.+)\\)?(.+)/.match account
+ domain = match[2]
+ name = match[3]
+ [name, domain]
+ end
end
-
end