Sha256: df07f38a658231dd40be5ceebc186fe60058a4f961aebe2683c7cded93a19814
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
#!/usr/bin/env ruby # (c) Copyright 2014 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'git' require_relative 'yaml_parse.rb' include YamlParse module Repositories def clone_repo definitions = YamlParse.get_values('../lib/catalog.yaml') maestro_url = definitions['default']['maestro'] home = File.expand_path('~') path = home + '/.hpcloud/' unless File.directory?(path) do g = Git.clone(maestro_url, 'maestro', :path => path) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems