Skip to content

Instantly share code, notes, and snippets.

@joseluistorres
Last active December 20, 2015 20:28
Show Gist options
  • Save joseluistorres/6190320 to your computer and use it in GitHub Desktop.
Save joseluistorres/6190320 to your computer and use it in GitHub Desktop.
Resuelve el acertijo de @hackergil
#! /usr/bin/env ruby
require 'thor'
class Test < Thor
desc "create", "Creates an empty git repository"
def create(dirname)
puts "Creating git repository"
FileUtils.mkdir dirname
FileUtils.pwd
`cd #{dirname}`
`git init .`
puts "Git repository has been created"
end
end
Test.start
@joseluistorres
Copy link
Author

¡Listo Gil, muchas gracias!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment