lib/ansible_spec.rb in ansible_spec-0.2.14 vs lib/ansible_spec.rb in ansible_spec-0.2.15
- old
+ new
@@ -11,10 +11,11 @@
def self.main()
safe_create_spec_helper
safe_create_rakefile
safe_create_ansiblespec
+ safe_create_rspec
end
def self.safe_create_spec_helper
content = File.open(File.dirname(__FILE__) + "/../lib/src/spec/spec_helper.rb").read
@@ -36,9 +37,17 @@
def self.safe_create_ansiblespec
content = File.open(File.dirname(__FILE__) + "/../lib/src/.ansiblespec").read
safe_touch(".ansiblespec")
File.open(".ansiblespec", 'w') do |f|
+ f.puts content
+ end
+ end
+
+ def self.safe_create_rspec
+ content = File.open(File.dirname(__FILE__) + "/../lib/src/.rspec").read
+ safe_touch(".rspec")
+ File.open(".rspec", 'w') do |f|
f.puts content
end
end
def self.safe_mkdir(dir)