lib/hanzo/modules/install.rb in hanzo-0.2.1 vs lib/hanzo/modules/install.rb in hanzo-0.2.2
- old
+ new
@@ -13,10 +13,16 @@
end
def initialize_cli
initialize_help and return if @type.nil?
- send "install_#{@type}"
+ method = "install_#{@type}"
+
+ if self.respond_to?(method)
+ send(method)
+ else
+ initialize_help
+ end
end
def initialize_help
@options.banner = <<-BANNER
Usage: hanzo install TYPE