162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
# File 'lib/dockit/cli.rb', line 162
def git_build(service=nil)
exec(service) do |s|
unless repos = s.config.get(:repos)
say "'repos' not defined in config file. Exiting",:red
exit 1
end
say "Exporting in #{Dir.pwd}", :green
say "<- #{repos} #{options.branch}", :green
if options.gem
say "-> Gemfiles", :green
export(repos, 'gemfile.tar.gz', 'Gemfile*')
end
say "-> repos.tar.gz", :green
export(repos, 'repos.tar.gz')
s.build
end
end
|