282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
|
# File 'lib/ggem/cli/commands.rb', line 282
def run(argv, *args)
super
begin
cmd{ @repo.run_validate_clean_cmd }
cmd{ @repo.run_validate_committed_cmd }
rescue GGem::GitRepo::CmdError => err
@stderr.puts "There are files that need to be committed first."
raise CommandExitError
end
cmd{ @repo.run_add_version_tag_cmd(@spec.version, @spec.version_tag) }
@stdout.puts "Tagged #{@spec.version_tag}."
begin
cmd{ @repo.run_push_cmd }
rescue
cmd{ @repo.run_rm_tag_cmd(@spec.version_tag) }
raise
end
@stdout.puts "Pushed git commits and tags."
rescue GGem::GitRepo::CmdError => err
@stderr.puts err.message
raise CommandExitError
end
|