bin/iptablez-shell in iptablez-1.0.2.pre vs bin/iptablez-shell in iptablez-1.0.3.pre
- old
+ new
@@ -1,21 +1,25 @@
-$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
#!/usr/bin/env ruby
require 'iptablez'
require 'colorize'
require 'pry'
include Iptablez
+def chains
+ Chains
+end
+
prompt_name = "#{"<コ".red + ":".green + "彡".red} #{"~".blue} "
Pry.config.prompt = [
proc { |target_self, nest_level, pry|
- "#{prompt_name}#{":#{nest_level}" unless nest_level.zero?}> "
+ "#{prompt_name}#{":#{nest_level}" unless nest_level.zero?} "
},
proc { |target_self, nest_level, pry|
"#{prompt_name}(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}* "
}
]
Pry.config.prompt_name = prompt_name
+
Pry.start