lib/osrcry/contributing.rb in osrcry-0.1.0 vs lib/osrcry/contributing.rb in osrcry-0.2.0
- old
+ new
@@ -1,7 +1,11 @@
module Osrcry
class Contributing
def self.execute
+ unless Osrcry.remote
+ puts "Unable to create CONTRIBUTING.md due to missing git remote.\nPlease add git remote and try again."
+ return
+ end
contributing = <<-CONTRIBUTING
## Getting Involved
New contributors are always welcome, when it doubt please ask questions. We strive to be an open and welcoming community. Please be nice to one another.