Class: Billy::Commands::Config
- Defined in:
- lib/billy/commands/config.rb
Instance Method Summary collapse
Methods inherited from Command
instance, #name, register_self!
Instance Method Details
#proceed!(arguments = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/billy/commands/config.rb', line 7 def proceed!( arguments = nil ) dir = Dir.pwd if !Billy::Config.config_exists?( dir ) print "Billy config file could not be found here. Say Billy hello." exit 1 else Billy::Config.load!( dir ) print "Current Billy settings: \n" Billy::Config.settings.each_pair do |k, v| print "#{k}:\t\t\t#{v}\n" end end end |