Module: RemoteCOB
- Defined in:
- lib/remote_cob.rb
Overview
___ _ ___ ___ ___ | _ ___ _ __ ___| |_ ___ / __/ _ \| _ ) | / -_) ‘ \/ _ \ _/ -_) | (_| (_) | _ \ |_|____|_|_|__/\___| _\_/|___/
this module contain the remote commands
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.ensure_credentials_and_remote ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/remote_cob.rb', line 12 def self.ensure_credentials_and_remote Credentials.new.ensure_config_file_is_created unless Git.remote puts 'could not find remote git repository' exit 1 end unless Git.repository_owner && Git.repository puts "couldn't retreive repo and owner from remote: #{remote}" exit 1 end end |