Skip to content

Instantly share code, notes, and snippets.

@hannesfostie
Created August 2, 2013 08:55
Show Gist options
  • Save hannesfostie/d4adbd8665ad8665198b to your computer and use it in GitHub Desktop.
Save hannesfostie/d4adbd8665ad8665198b to your computer and use it in GitHub Desktop.
# ...
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
sock_admin (master) ✗ thor_admin
zsh: command not found: thor_admin
Successfully uninstalled sock_admin-0.0.3
Remove executables:
sock_admin
in addition to the gem? [Yn] y
sock_admin (master) ✗ ls bin
sock_admin thor_admin
#!/usr/bin/ruby
require 'thor'
require 'sock_admin'
module SockAdmin
class CLI < Thor
# ...
end
end
SockAdmin::CLI.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment